KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What I would Like I would like to trigger client-side validation in my View with an event of my choice. It could be 'onblur' maybe another button but something other than the submit button. Relevant Links How to trigger validation without using a submit button Applying unobtrusive jquery validation to dynamic content in ASP.Net MVC What I've tried Given a various event listener, I've fired the following methods with no luck: $(selector).validate(); $(selector).valid(); $.validator.unobtrusive.parseDynamicContent(selector); $.validator.unobtrusive.parse($(selector)); Summary So I need client-side validation to fire on a given event (other than on submit) and show the corresponding validation messages. I dont feel like any of the Markup/Razor syntax is necessary as client-validation fires on submit and all the corresponding validation messages show as expected.
Tags (comma-separated)
Save Edits
Cancel