hi, i solved it.
jQuery(‘.my-result’).html(square calculation+’ cm2′);
I also fixed it by adding it, thank you for your time.
The code below is working now 🙂 I was very happy.
The only problem is how do I do the clear function?
Thanks a lot, great plugin.
(function(){
var dikalanhesaplama;
if (fieldname14 == 'A') {
dikalanhesaplama = PREC(fieldname1 * fieldname2, 2, true);
jQuery('#calculation-dikalanhesaplama').html(dikalanhesaplama + ' cm2');
jQuery('.my-text').html('Dikdörtgen Alanı :');
jQuery('.my-sonuc').html(dikalanhesaplama + ' cm2');
}
return [dikalanhesaplama];
})();
Hello @klingbeil
If you want to clear the tags by pressing a button, you can enter the following piece of code:
jQuery('#calculation-dikalanhesaplama').html('');
jQuery('.my-text').html('');
jQuery('.my-sonuc').html('');
Or, with only one line of code:
jQuery('#calculation-dikalanhesaplama,.my-text,.my-sonuc').html('');
Best regards.