Saturday, 4 October 2014

Exact Floating validation in javascript

var qty = 2.56.6
if (!isFinite(qty)) {
 alert("false")
}else{
 alert("true")
}

No comments:

Post a Comment