Most of the times we need to validate the input box. Using the following java script we can take only numeric value as an input
$(document).ready(function () {
$(".number").live("keyup", function () {
this.value = this.value.replace(/[^0-9\.]/g, '');
});})
we can use the script following ways:
<input ="" class="number" type="text" />
Subscribe to:
Post Comments (Atom)
5 Strategies for Getting More Work Done in Less Time
Summary. You’ve got more to do than could possibly get done with your current work style. You’ve prioritized. You’ve planned. You’ve dele...
-
Imagine going to work everyday and facing a colleague who does not respect you or having to work with someone who was constantly underminin...
-
Sometimes just to get a quick success build you might need to disable/ignore/skip some of the munit test cases. you can do you by double ...
-
Install ActiveMQ Step 1: Download Apache Active MQ 5.x.x (5.15.8 Latest Version Up to Feb 2019) Step 2: Install ActiveMQ Run the Active...
No comments:
Post a Comment