Scroll to top

How to fix If value is infinity, empty and NaN in jQuery?

 fix If value is infinity, empty and NaN in jQuery

if (theResult == Infinity || theResult == "" || theResult == NaN) {
theResult
== 0;
}
$
("#theResult").val(theResult);

Leave a Reply

Your email address will not be published.