0
我有一個表單有多個<input>
字段。我想運行一個JavaScript函數,當每個人都「參與」,所以jQuery的.focus()
似乎是做到這一點的方式。jQuery .focus()不會觸發每個表單元素
運行...
$('input').focus(change_submit_button_state(form_id, form_elements_id_array));
只運行change_submit_button_state
功能雖然一次。
這裏怎麼回事?