What’s the proper way for jQuery selecting a object when the name states a subfield in an array?
I spontanously tried:
$('select[name=field[subfield]]').change(function(){
alert('houston we have contact');
});
The DOM object is:
<select name="field[subfield]">
<option>..</option>
<option>..</option>
<option>..</option>
</select>
Try adding quotes:
Working demo: http://jsfiddle.net/hHHMS/