hey folks,
I'm using the fantastic jquery .validate plugin from Jörn Zaefferer at bassistance
I'm using asp.net, so have one long form, though the form is broken up into 3 sections via a jquery accordion with buttons to switch between accordion panes.
I want the button in pane one to validate pane one fields, same with pane two, etc.
Obviously in any other technology, I'd go with multiple forms and have no difficulty at all, though I can't do this in .net.
I think what I need is almost a $('#aspnetForm').validate().unbind()
or something similar - on accordion click I'm asking to re-validate the form, so I know which page I'm on and I could then just setup new rules etc.
I tried clearing out the rules $('#aspnetForm').validate().rules('remove')
though it seems I would have to do this for each field rather than the form itself?
I can post any code examples necessary, though the overall script is sizable now so I'd have to dig chunks out.
Hopefully I'm making logical sense above - basically, a means of clearing out all rules so that I can create new ones because I'm in a different accordion panel is the solution I'm hoping for, though I'm struggling.
Many thanks, Terry