detecting textbox change when changing the content programmatically

后端 未结 1 564
盖世英雄少女心
盖世英雄少女心 2020-12-21 22:13

I have a textbox that\'s linked to a jquery event handler like this:

$(\'#SomeDiv\').on({

   mouseenter: ....
   mouseleave: ....
   blur: ....
   keyup: fu         


        
相关标签:
1条回答
  • 2020-12-21 23:05

    You need to fire the change event manually.

    $('#SomeTextBox').val(SomeValue).change();

    0 讨论(0)
提交回复
热议问题