I have a number of elements on a HTML forms, similar to the following:
<div class="area">
First Area
<select class="area_select" name="area_25" id="form_area_25">
<option value="0" selected="selected">No</option>
<option value="1" >Don't Mind</option>
<option value="2" >Yes</option>
</select>
</div>
<div class="area">
Second Area
<select class="area_select" name="area_13" id="form_area_13">
<option value="0" selected="selected">No</option>
<option value="1" >Don't Mind</option>
<option value="2" >Yes</option>
</select>
</div>
.... and many more
They all have a class of area_select, and id of form_area_id where id as a unique integer.
I am trying to use jQuery to write an event handler for when the user changes a select box.
All I've managed to get so far is this:
$(".area_select").change(function() {
alert('select changed, but no idea which one');
});
Is there any way to let the event handler know exactly which select is the source of the event?