I am trying to detect any change in select options and bind it to the function. So far, I am using DOMSubtreeModified event to detect this change but it’s not showing proper count if option is deleted from the select.
$('#employee').bind("DOMSubtreeModified", function() {
alert($('#employee option').size());
});
I didn’t find any resolution so I go ahead with the Javascript timer. It’s a hack but works for us.