[removed] changing the value of onclick with or without jQuery

前端 未结 7 2357
执笔经年
执笔经年 2020-12-07 16:46

I\'d like to change the value of the onclick attribute on an anchor. I want to set it to a new string that contains JavaScript. (That string is provided to the

7条回答
  •  粉色の甜心
    2020-12-07 17:21

    just use jQuery bind method !jquery-selector!.bind('event', !fn!);

    See here for more about events in jQuery

提交回复
热议问题