add event on dynamic content in jquery

Code Snippets

Try Event Delegation:
$(document).on("change", "#Sites", function(){
    var siteId = this.value;
    GetSectors(siteId);  
});

No comments:

Post a Comment