...::: Recent Updates :::...

Saturday, January 28, 2012

Create a Form in HTML with two fields, minimum and maximum, write JavaScript to validate that only numeric value is entered in both, and the value entered in minimum is less than the value entered in maximum.

Create a Form in HTML with two fields, minimum and maximum, write JavaScript to validate that only numeric value is entered in both, and the value entered in minimum is less than the value entered in maximum.

Description:- Take two textboxes to accept two values from the user and check whether the values entered in both the textboxes are numeric or not and put validation on it that you can enter only numeric values. You can also  check the that the field marked as maximum should have greater value as compared to the field marked as minimum if it is not so than put proper validation for it.

Hint: Key allowed in the textbox is 0-9, ‘.’. 


No comments:

Post a Comment