title: Jquery – Select optgroup in select
body: <p>I have a select with 2 optgroups. Is there a way to call an function only if an option from the first optgroup is selected and call another function if an option from the second optgroup is selected?</p>