I'm returning a partial view with jquery ajax that contents dropdowns that filters. The problem I'm experiencing is when the partial view is load with ajax and I select an option to filter my other dropdowns my javascript doesn't fire, but when reload the page and select an option to filter everything works and my code work as it should. Why do I need to reload my page for my script to fire? Below is the blueprint of jquery ajax I use for all ajax requests:
$.ajax({
type: "GET",
url: url,
beforeSend: function () { $('.wait').show(); },
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(errorThrown);
},
success: function (data) {
$('#tab3').html(data);
},
complete: function () { $('.wait').hide(); }
});