JQuery detecting Programatic change event

后端 未结 3 380
悲哀的现实
悲哀的现实 2020-12-01 23:43

If i do jQuery(expr).change( function), then I can get an event function to fire when the user makes a change to the value.

Is it possible to get this to fire if it\

3条回答
  •  难免孤独
    2020-12-02 00:40

    jQuery v1+ supports the programmatic triggering of handlers - I have used this method as opposed to the .change() method as it allows for multiple other handlers to be fired if needed (e.g. some custom handlers). API Documentation is at: http://api.jquery.com/trigger/

提交回复
热议问题