This would be the syntax used with .delegate() for this particular case. Notice that the 'listOfOptions' is the class of the drop-down list.
$('body').delegate('.listOfOptions', 'change', function() {
if ($(this).find(':selected').attr('class') == 'customOption') {
// DO SOMETHING!!
}
else {
// DO SOMETHING ELSE
}
});
It works like a charm in all browsers.
Onema
2010-09-29 23:23:18