Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting Bootstraps Popover to 'click' or 'manual' from 'hover.'
    primarykey
    data
    text
    <p>I've been working on embedding an interactive element (a search function) within bootstrap's popover. I haven't been able to test it's functionality because I can't seem to, just as importantly, set the event either in javascript or markup to 'click' rather than 'hover.' I'm a js neophyte, so do bear with me. </p> <pre><code>&lt;div class="popover-markup"&gt; &lt;a href="#" class="trigger"&gt;Search&lt;/a&gt; &lt;div class="head hide"&gt;Find an Action&lt;/div&gt; &lt;div class="content hide"&gt; &lt;input class='input-block-level' id='search_address' placeholder='Enter an address or an intersection' type='text'&gt; &lt;select class='input-small' id='search_radius'&gt; &lt;option value='400'&gt;2 blocks&lt;/option&gt; &lt;option value='805'&gt;1/2 mile&lt;/option&gt; &lt;option value='1610'&gt;1 mile&lt;/option&gt; &lt;option value='3220'&gt;2 miles&lt;/option&gt; &lt;/select&gt; &lt;h4&gt;Find a School or Campus&lt;/h4&gt; &lt;input class='input-block-level' id='text_search' placeholder="Find a School or Campus" type='text' data-provide="typeahead"&gt; &lt;input class='btn btn-primary' id='search' type='button' value='Search'&gt; &lt;button class='btn' id='reset'&gt;Reset&lt;/button&gt; &lt;/div&gt; &lt;div class="footer hide"&gt;test&lt;/div&gt; </code></pre> <p>and here is the js:</p> <pre><code>$('.popover-markup&gt;.trigger').popover({ html : true, title: function() { return $(this).parent().find('.head').html(); }, content: function() { return $(this).parent().find('.content').html(); } }); </code></pre> <p>Any help is appreciated. Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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