Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input name="phone" id="phone" class="some class {validate:{required:true,number:true, rangelength:[2,8]}}" />
- $('#phone').change(function(){
- if($(this).val().length > 0)
- {
- $('#address').removeClass().addClass('original class without validation');
- }
- });
Add Comment
Please, Sign In to add comment