Hi,
I have the following drop-down menu:
<select name='type' id='type'>
<option id='trade_buy' value='1' selected='selected'>Buy</option>
<option id='trade_buy_max' value='1'>Buy max</option>
<option id='trade_sell' value='2'>Sell</option>
<option id='trade_sell_max' value='2'>Sell max</option>
</select>
I'd like jQuery to detect when the option with the id trade_buy_max
is selected.
I've tried the following, but it doesn't seem to work.
$(document).ready(function() {
$("option#trade_buy_max").select(function () {
//do something
});
});
Any ideas?
Thanks in advance.