how to change onclick event with jquery?

后端 未结 7 1102
梦毁少年i
梦毁少年i 2020-12-08 09:01

I have create a js file in which i am creating the dynamic table and dynamically changing the click event for the calendar but onclicking the calender image for dynamic gene

相关标签:
7条回答
  • 2020-12-08 09:47

    Updating this post (2015) : unbind/bind should not be used anymore with jQuery 1.7+. Use instead the function off(). Example :

    $('#id').off('click');
    $('#id').click(function(){
        myNewFunction();
        //Other code etc.
    });
    

    Be sure that you call a non-parameter function in .click, otherwise it will be ignored.

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