Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery Popover - Hide
    text
    copied!<p>I have strange problem. I made popover in Jquery. When it appears some links are behind it. When I close it i cannot click this links. It's like this popover is hidden and we cannot see it but it's still there end it's blockin 'way' to this links...</p> <p>My script for closing popover:</p> <pre><code> $(document).on("click",".close", function(){ $("#add-users-from-emails-btn").popover('hide'); }); </code></pre> <p>Popover:</p> <pre><code> $("#add-users-from-emails-btn").popover({ placement: "bottom", title: '&lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt; {{'user.index.enter_users_emails_each_rows'|trans|raw}}', html: true, content: $("#add-users-from-emails-popover") }).on('show.bs.popover', function(){ $("#add-users-from-emails-popover").removeClass("hidden"); }).on('shown.bs.popover', function(){ $("#add-users-from-emails-popover textarea").focus(); }); </code></pre> <p>Form:</p> <pre><code>&lt;form id="add-users-from-emails-popover" class="hidden clearfix" style="width: 300px;" method="post" action="{{path('adm_user_addusersfromemails')}}"&gt; &lt;select name="business" class="form-control"&gt; &lt;option class="empty" value&gt;{{'empty_value'|trans({},'app')}}&lt;/option&gt; {% for b in business %} &lt;option value="{{b.id}}"&gt;{{b.businessName}}&lt;/option&gt; {% endfor %} &lt;/select&gt; &lt;textarea name="emails" style="margin-top: 10px" rows="5" class="form-control" style="max-width: 300px;"&gt;&lt;/textarea&gt; &lt;button type="submit" style="margin-top: 10px" class="btn btn-default btn-xs pull-right" id="save-users-from-emails-btn"&gt;{{ 'user.index.add_users'|trans }}&lt;/button&gt; &lt;/form&gt; </code></pre> <p>What Am I doin wrong ? ;-)</p> <p>PROBLEM SOLVED Correct script for closing popover:</p> <pre><code> $(document).on("click",".close", function(){ $("#add-users-from-emails-btn").click(); }); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload