it seems as though .change()
is the correct way to go about this on the <select>
element.
note, though, that you'll have to retrieve the option manually once a change event has been fired on the <select>
since this
refers to a <select>
element and not an <option>
element.
you'll have to do this: var $selected = $(this).find(":selected");
$selected
will contain the select option, or multiple selected options if multiple select is enabled.
just want to clarify that .change()
is to be used on the <select>
element and not the <option>
elements.