$('#price').keyup(function(e){ var entered_value = $(this).val(); var regexPattern = /^\d{0,8}(\.\d{1,2})?$/; //Allow only Number as well 0nly 2 digit after dot(.) if(regexPattern.test(entered_value)) { alert("false") ; } else { alert("true"); } });
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
Tuesday, 19 August 2014
Input field JQuery float validation, decimal validation
Subscribe to:
Post Comments (Atom)
Feet/Inches to Meters Converter & Lbs to Kgs Converter
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Feet/Inches ⇄...
-
<?php $to = "somebody@example.com, somebodyelse@example.com"; $subject = "HTML email"; $message = " <h...
-
ISAIMINI.COM Download
-
document.onkeydown = myKeyDownHandler; function myKeyDownHandler(event){ alert(event.keyCode) }
No comments:
Post a Comment