For a simple grouping of parameters, let's say:
<optgroup label="fruit"> <option value="1"> apples </option> <option value="2"> pears </option> </optgroup> <optgroup label="veg"> <option value="3"> neeps </option> <option value="4"> tatties </option> </optgroup>
I can get a capture of the selected option id ... Usage:
$('#my-chzn').chosen().change( function(evt) { var id = $(this).val();
But is it possible to capture the <optgroup> label for the selected option? those. is there a knob / selector to capture the meaning of βfruitβ when the selected option is βpearsβ?
Thanks so much for any help anyone can offer ....
user908094
source share