IfnotFr / PopConfirm

A simple action confirmation plugin for jQuery based on Twitter Bootstrap Popover

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PopConfirm not work on AJAX loaded HTML elements

renat2985 opened this issue · comments

PopConfirm not work on AJAX loaded HTML elements please help.

Hi,

It is normal, as all jquery plugins handle the dom of the page (that's why we use $(document).ready()).

If you want to add PopConfirm behaviour on loaded HTML content you should run another time $('.my-new-content').popConfirm();

Usefull trick : Do all your dom enhanding stuff (like popconfirm) into a js function with a selector. So you can use the same piece of code for startup (and all your document), and for async content.