I have the following code:
<select>
<optgroup label="fruta">
<option value="banana">banana</option>
<option value="uva">uva</option>
</optgroup>
<optgroup label="legume">
<option value="batata">batata</option>
<option value="cenoura">cenoura</option>
</optgroup>
</select>
<div id="label_value"></div>
I would like in JQuery to get the value of the label and value and play on a div.