jquery - Tab validation in mvc3 -
im using mvc3 application jquery validation. have disabled hidden field validation in jquery.validate.unobtrusive.js using ignore: ":hidden".
i have 2 tabs in application. when click submit, tab highlighted gets validated though have tab, fields not getting validated there on tab. decided use javascript function input fields on tabs , validate them.
function nextonclick() { (var = 0; < 4; i++) { $('input', '#tab' + i).valid(); } }
however when validate method called gives me error
form null or not object
what doing wrong here? there other approach tab validation in mvc3, other eager validation? want validation on form submit. thanks!
Comments
Post a Comment