select2 onchange event only works once
This is what I am using: $(“#search_code”).live(‘change’, function(){ alert(this.value) }); For latest jQuery users, this one should work: $(document.body).on(“change”,”#search_code”,function(){ alert(this.value); });