If I have this code:
<div id="one">
<label>first</label>
<select name="area" class="area">
<option selected="selected">First</option>
</div>
<div id="two">
<label>second</label>
<select name="area" class="area">
<option selected="selected">Second</option>
</div>
Is it possible something like this?
$("#one: .area").change(function() {}
or
$("#two: .area").change(function() {}
It doesn’t work, could someone explain why?
This is probably what you want
or
Also Make sure you end your select tag. You have the following HTML
It should be