Forums

Give help. Get help.

  • # January 11, 2013 at 3:55 am

    I am trying to activate a couple of javascript plugins in Bootstrap but so far, neither are working. Here’s the script I am using for each:

    Accordion:

    $(document).ready(function() {
    $(‘a.accordion-toggle’).collapse({
    toggle: false
    })

    Static Popovers:

    $(document).ready(function() {
    $(‘.refer’).popover(thml)

    })

    div class=”refer”>

    # January 11, 2013 at 4:25 am

    We’d need to see a live site. Do you have a link?

    # January 11, 2013 at 9:05 am

    Have you wrapped that JS in <script> </script> tags?

    # January 11, 2013 at 11:13 am

    ooops….sorry guys: debbierking.com/bootstrap. The accordion is for the page writing.php. The popovers are for refer.php.

    Andy, yes….I am using the script tags.

    # January 11, 2013 at 1:33 pm

    hmmm…still not working. I’m trying to make sense of what they offer on this page for accordions and popovers:

    http://twitter.github.com/bootstrap/javascript.html#collapse

    http://twitter.github.com/bootstrap/javascript.html#popovers

    # January 11, 2013 at 1:48 pm

    I set up a jsfiddle for the accordion but that doesn’t seem to be working…am new to jsfiddle/codepen so I’m not sure if I set it up correctly.

    http://jsfiddle.net/DesignLady94/rbH9M/2/

    # January 11, 2013 at 2:31 pm

    Thank you Josh…that did it for the accordion! Can’t believe I missed the href incongruity.

    Now on to the popover…this is what I’m using (from twitter.github.com/bootstrap/javascript.html#popovers):

    $(document).ready(function() {
    $(‘.refer’).popover(html)
    });

    HTML:

    Title

    blah blah blah blah blah blah blah

    Am not sure which options I should be using.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag