¡@

Home 

2014/10/16 ¤W¤È 12:06:26

jquery Programming Glossary: popoversettings

How to bind bootstrap popover on dynamic elements

http://stackoverflow.com/questions/16990573/how-to-bind-bootstrap-popover-on-dynamic-elements

is going to have a selector that is consistent then you can make use of selector property of popover constructor. var popOverSettings placement 'bottom' container 'body' html true selector ' rel popover ' Sepcify the selector here content function return.. selector ' rel popover ' Sepcify the selector here content function return '#popover content' .html 'body' .popover popOverSettings Demo Other ways Standard Way Bind the popover again to the new items being inserted. Save the popoversettings in an external.. Event Mutation Observer to identify if a particular element has been inserted on to the ul or an element. Source var popOverSettings Save the setting for later use as well placement 'bottom' container 'body' html true content div style 'color red' This..