0

I hope I am just missing something here, but I've been tearing my hair out over trying to include scripts from a .NET MVC Partial View when using jQuery Ajax to load the view.

I have a form whose HTML gets replaced via a callback function on a jQuery ajax get request:

$.get('/My/Partial/View', function(result) {
    $form.html(result);
});

The partial view contains several tags, which are not being seen by the browser. How can I use jQuery Ajax to load a partial view to the page in a way that the tags are executed?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.