Symbol to display at beginning of calculated field

[ad_1]

Hi? need help!

Have a code:

ROUND((function(){
var result = ”;
if( AND(fieldname2, fieldname3) ){
result = fieldname2/fieldname3;
jQuery(‘.text-here’).html(‘Current Strength’);
} else if( AND(fieldname2, fieldname40) ){
result = fieldname2/fieldname40;
jQuery(‘.text-here’).html(‘Resistance’);
} else if( AND(fieldname3, fieldname40) ){
result = fieldname3*fieldname40;
jQuery(‘.text-here’).html(‘Voltage’);
}

return result;

})(),0.001)

calculations are performed based on the selected field in the drop-down list. Before starting to select which variable we want to calculate, 0.000 is displayed in the calculated field. After the calculations, we get some data – let’s say 1,111. But depending on what is selected in the drop-down list, units should be displayed. That is, if a person chooses in the list that he wants to calculate the “Voltage”, then you need to get 1,111 V. If a person wants to calculate the “Resistance”, then “Ohms” should be displayed in the field and so on. If we use the field: “Symbol to display at beginning of calculated field”, then we will have only a constant symbol, can we somehow implement this symbol to change depending on what a person needs to calculate?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer