0

I have a large dropdown help menu that I'd like to open normally from the menu AND also open from a link outside of the dropdown menu structure.

JS Fiddle of broken scenario: http://jsfiddle.net/tmfzog1j/1/

When I run $('.dropdown-toggle').dropdown("toggle"); from the browser console, it works fine, which makes me think it's some kind of event.propagation problem.

1 Answer 1

1

works

you have to stop propagation on that puppy, so you were totally right.

$( document ).ready(function() {
  $('.remote').click(function(e){
      e.stopPropagation();
    $(".dropdown-toggle").dropdown('toggle');
  });
});

JSFIDDLE

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.