Sometimes you need to do client side validation based on other controls on the screen. Here is an example of how you can use the jQuery validation plugin to do dynamic range validation: < style type = " text/css " > label . error { color : red ; } < / style > < form id = " betweenForm " method = " post " action = " " > Change some values : < br / > < label for = " a " > Field min : < / label > < input id = " a " name = " a " type = " text " value = " 1 " / > < br / > < label for = " b " > Field max : < / label > < input id = " b " name = " b " type = " text " value = " 100 " / > < br / > < label for = " c " > Field between : < / label > < input id = " c " class = " required " name = ...
Making source code easier to understand

Comments
Post a Comment