Relative Content

Tag Archive for asp.net-mvcvalidationrazorunobtrusive-javascript

Unobtrusive Javascript – And Ajax Requests

I’ve got a simple example here. Basically a form which when submitted will reload itself via an ajax request. The problem is when this happens, the unobtrusive javascript no longer works. I assume I could add the validate and unobtrusive files in the html i get back from the ajax call, but there must be an easier way to re-wire the validators, no?