相关疑难解决方法(0)

将事件处理程序附加到twitter bootstrap popover中的按钮

我正在使用twitter bootstrap popovers,

在popover我添加一个按钮,

I need to attach a click handler to the button, but the way popover works is each time it shows it removes and re-creates the element, instead of just showing/hiding it, hence removing any event handlers I have associated with said button.

I am creating several popovers all with their own version of the button, so just applying a class to the popover won't work (unless I generate a different class for each one :/), the …

javascript jquery event-handling popover twitter-bootstrap

24
推荐指数
4
解决办法
3万
查看次数