Im having a terrible time trying to calculate the value of two form fields. I'm constantly getting "NAN" which would indicate non-numeric input, this is despite the fact that the form fields are only populated with numbers.
In response I tried to use ParseInt to get a numeric value. This also fails to yield a successful result.
This is what I have so far. Any help is appreciated.
$('#value-calc input').change(function () {
var valueINT = parseInt($('#value'),10);
var quantINT = parseInt($('#quantity'), 10);
var math = ((valueINT/quantINT)*1000);
$('#cpm').val(math);
});