Hello Klas,
Originally I was trying to compare values between two dynamic select fields. Then I tried the following function:
validapreco2 = function(){
var valorpreco2 = jQuery(this).attr(`est_preco2`).value;
var msg;
console.log("This is a test");
if ( valorpreco2 < 1000 ) {
msg="Valor menor do que 1000";
}
return msg;
}
As you can see I put a "console.log" in the middle of the function to see if it was been called, and the result in console is nothing.
Thanks in advance