javascript - Can I get the current state of a twitter bootstrap popover? -
I currently call a script to dynamically add content to my popover, but I need to call it Not when a user clicks and then to turn it off
This is what I have done so far:
$ ('. Known'). (Click on 'function'), {var info = $ (this) .attr ('id'). Substr (5) .split (':'); var el = $ (this); // How do I see ? If popovar looks / can I just close it and get out? $ .post ('functions / get_known_issues.php? Tcid =' + info [0] + '& amp; tcdate =' + info [ 1], function data) {if (data.st) {el.attr ('data-content', data tissue); el.popover ('toggle');}}, "json");});
if ($ ('. Popover'). ')) { // popover is visible} other {// popovers are not visible}
Comments
Post a Comment