0
我有一个表单有多个<input>
字段。我想运行一个JavaScript函数,当每个人都“参与”,所以jQuery的.focus()
似乎是做到这一点的方式。jQuery .focus()不会触发每个表单元素
运行...
$('input').focus(change_submit_button_state(form_id, form_elements_id_array));
只运行change_submit_button_state
功能虽然一次。
这里怎么回事?