I had to use this to get the integer value of a field:
var local = {};
local.result = $('#myID').val();
local.result = parseInt(0 + local.result);
return local.result;
Q: Is there a best practice instead, like some sort of jQuery method that returns a value or the number 0 if it's not a value?
I gotta have more jQuery!