Hi All, I have a select list with optgroups. I want to add a handler for the drop down selected index change, how do I tell which optgroup the selected item belongs to? This determines further execution path. I understand how to add the function, the function contents are more the issue.
$ddl.bind("change", function(){
//how do I find out which option group the selected option belongs to?
var selectList = $(this);
});
Thanks for any tips.
Cheers, ~ck