MVC Partial View Postback - Jquery validation lost
Posted
by
user415394
on Stack Overflow
See other posts from Stack Overflow
or by user415394
Published on 2010-12-30T18:32:03Z
Indexed on
2010/12/30
18:54 UTC
Read the original article
Hit count: 289
I have a partial view which uses Jquery Valiation. This works OK when initially loaded, however after I do a ajax postback and return the partial view from the server with an error showing, the jquery validation seems to be lost.
In that, if I delete a required field and hit save the partial view gets submitted, when I would expect it to show an error message and not get submitted. Does Jquery validation need to be initialised somehow for the form in the partial view?
© Stack Overflow or respective owner