how to change onclick event with jquery?

后端 未结 7 1221
梦毁少年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:32

    $('#id').attr('onclick', 'function()');

    Right now (11 Jul 2015) this solution is still working (jquery 2.1.4); in my opinion, it is the best one to pick up.

提交回复
热议问题