calvin peters 5/12/2023 5:42:54 AM ...forgot to mention, though you may have already caught this part, the .val() property will be retrieved from your form as text so if you need to use it as a numeric value you will need to convert it or 'coax' it to numeric to be able to pass it to something else or use it for maths inside your script. So preface with a '+' like +$('[name="f_43406340"]').val() or use parseInt() if it's a whole number like: parseInt($('[name="f_43406340"]').val()) or parseFloat() like: parseFloat($('[name="f_43406340"]').val()) if it's a decimal value or contains decimal value
Without converting first any math jobs in your script will treat the $('[name="f_43406340"]').val() as text and concatenate when adding for instance, or return a 'NaN' result if doing something else with it..
Cheers
|