events - jquery toggleClass on nav is not seeing child link in a div -
i'm revealing simple nav display: block; , display: none. i'm using jquery toggleclass. that's working fine. click isn't getting link within divs within nav.
how forcefulness it? (this meteor syntax, shouldn't matter, right?)
'tap .navbuttons': function(e) { $('nav').toggleclass('shownav'); }
here's sample div nav area:
<div id="search" class="navbuttons"><a href="{{pathfor 'startpage'}}">search</a></div>
i'm expecting see click on link, route page (pathfor 'startpage' iron-router) , display: none; on nav. shouldn't have set jquery click in function, should i? won't link it's job?
i figure i've got bubbling or propagation issue, haven't been able work out.
my classes working fine, no need show css.
jquery events hyperlink click
No comments:
Post a Comment