[ad_1]
Hello @klingbeil
Please include the link to the page that contains the form. I cannot know if the data are read properly, or if the element ID is correct without checking your code in action.
Best regards.
As an example, I gave the output criterion92 field. I left the area open for you to see.
The output comes but it doesn’t fill the space.
Hello @klingbeil
The issue is simple. Your form 14 does not include any tag with ID calculation-kriter92
So, the piece of code jQuery('#calculation-kriter92') does not select any element.
Best regards.
It actually selects it in the code.
Frankly, I don’t understand exactly what the problem is;
The code below gives output in the function in the section. but it doesn’t fill the fieldname53 field.
(function () {
var kriter92 = '';
jQuery.ajax({
url: 'https://www.xxx.com.tr/xxx/xxx.php',
dataType: 'json',
success: function (response) {
var kriter92a = response.graltinalis;
kriter92 = PREC(kriter92a * fieldname44 * 7.216,2,true);
jQuery('#calculation-kriter92').html(kriter92);
jQuery('.kriter92-aciklama').html('Çevrilen Miktar : ');
jQuery('.kriter92-sonuc').html(FORMAT(kriter92, { groupingsymbol: ".", decimalsymbol: "," }) + ' TL');
},
error: function (error) {
console.error('Error fetching data:', error);
}
});
})();
