jQuery Based Validation


One of the most common task any web site developers do is writing a JavaScript for validation of various input which broadly includes

Sometimes writing JavaScript even using jQuery style is cumbersome and its too easy to get lost or at least remember each and every field name or ID to do the validation.

 Now think how easy it would be to make a input field to accept only numeric values by just setting a single attribute. Example

Working Example Sample Code Comments Back to Links

Decimal Only
Integer Only
Integer Only with Min and Max (1 to 12)
Email Only
Text area input length
(No more than 100 character)