jQuery event on value change of input hidden

后端 未结 4 703
遇见更好的自我
遇见更好的自我 2021-02-05 17:40

I have this input hidden:


I want to alert \"hey\

4条回答
  •  借酒劲吻你
    2021-02-05 18:15

    You can try this code :

    $(function(){
        var $hello = $('[id$="myValue"]');
    
        $hello.bind("change load", function(){
            alert('hey');
        });
    });
    

提交回复
热议问题