I am running into an error in IE 9 and 10. The error is "Unable to get property 'replace' of undefined or null reference". If we are to believe Microsoft's error, it reports the error is occurring on the value.replace line of the following function:
function jsstrtonum($value) {
if($value == '') {
$value = '0.00';
}
var $retval = $value.replace(/[^0-9\.]+/g, '');
return Number($retval);
}
I am only having difficulty in IE. All other browsers execute this function flawlessly. I have been working on this for hours now. Any help would be greatly appreciated.