Find out if html form has changed

前端 未结 6 2194
清酒与你
清酒与你 2020-12-08 11:53

Using jquery I\'ve added a change handler to a form. This works when any input is changed BUT only if the user manually changes an input and not when some other code changes

6条回答
  •  盖世英雄少女心
    2020-12-08 12:25

    Try onchange attribute According to W3c it should trigger anytime the content of an element, the selection, or the checked state have changed.

提交回复
热议问题