I need to get the text and not the value but I don't know how.
Sample code:
<select id="a2">
<option value="b1">Burger Mcdo(Php 30.00)</option>
<option value="b2">Cheeseburger (Php 39.00)</option>
<option value="b3">Crispy Chicken Sandwich (Php 39.00)</option>
<option value="b4">Double Cheeseburger (Php 80.00)</option>
<option value="b5">Big Mac (Php 100.00)</option>
</select>
I can get the option value w/:
var z2 = document.getElementById('a2').value;
But I want to get the text value (ex.Big Mac (Php 100.00))