Is there a jquery event for when options are added or removed from a select control on an HTML page? I have tried .change() but it only seems to fire when I click on option elements. I.e. this doesn’t work:
$(function() {
$('#select').change(function() {
alert('hello world');
})
});
Thank you :).
You need a plugin to check if there is HTML added or removed from the DOM. livequery is a plugin http://docs.jquery.com/Plugins/livequery