21 March 2020

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);

No comments:

Post a Comment

How to add re-captcha v3 on all Elementor forms using coding?

 Add re-captcha v3 on all Elementor forms using coding add_action('wp_footer',function(){     ?> <script src="https://www...