jQuery UI validation plugin adds class 'valid' to elements -


i using jquery ui validation plugin. validating few fields(input elements) when form validated class 'valid' being added other input elements(in jqgrid) not validating. , applies input's in jqgrid edited(or focus in-blur). problem have iterate on each input in jqgrid based on class. there way avoid unnecessary 'valid' class being added elements though have not validated ui-validate plugin?

if you're using jquery validate plugin, use validclass option set class different valid. default, it's valid.

$(document).ready(function() {      $('#myform').validate({         // other options & rules,         validclass: "myvalidclass"     });  }); 

see documentation: http://docs.jquery.com/plugins/validation/validate#toptions


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -