当名称声明数组中的子字段时,jQuery 选择对象的正确方法是什么?
我自发尝试:
$('select[name=field[subfield]]').change(function(){
alert('houston we have contact');
});
DOM 对象是:
<select name="field[subfield]">
<option>..</option>
<option>..</option>
<option>..</option>
</select>