bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Dropdown not working

Open anandanjaria opened this issue 14 years ago • 10 comments

Hi,

I am trying to implement dropdown in twitter bootstrap v 2.0 (wip) based on documentation. But still i am not getting it activated.

Please help

http://jsfiddle.net/anandanjaria/Yhwjq/2/

anandanjaria avatar Jan 21 '12 16:01 anandanjaria

I cleaned up your jsfiddle and got it working here: http://jsfiddle.net/QYnzF/

The real fix was setting href="#" instead of href="#menu1" on the dropdown toggle.

A lot of the files you referenced in the jsfiddle don't exist, or aren't what you're expecting, particularly the Javascript files linked directly from GitHub. For example, you're including this file when you really want the raw version.

cgunther avatar Jan 21 '12 19:01 cgunther

Thanks man... I made href="#" and it worked

But as per JS doc "For added control and flexibility, optionally specify a data-target="#fat" or href="#fat" - this allows you to target specific dropdowns."

anandanjaria avatar Jan 22 '12 04:01 anandanjaria

if you specify a target the target should be the element with the "dropdown" class not the ul element.

fat avatar Jan 22 '12 06:01 fat

I follow the steps above and many other instructions and to me still not working the top bar dropdown menu, does not matter what I do, nothing change, just do not work the dropdown.

Please take a look at : http://jsfiddle.net/XR2ef/

devasia2112 avatar Feb 16 '12 19:02 devasia2112

Hi @deepcell - I edited your Fiddle. Please see http://jsfiddle.net/XR2ef/1/.

In the Fiddle, I updated jQuery to 1.7.1 and added data-toggle="dropdown" to the Pagamentos link tag. The dropdowns are now working for me on Chrome/Mac 17.0.963.56.

Hope this helps!

sethlilly avatar Feb 16 '12 20:02 sethlilly

I just realized that the bootstrap does not work on machines using windows xp (Whatever browser you are using, try Firefox, Chrome, IE).
Now I'm using openSuse 11.4 and it work perfect with Firefox 10.0 and Chrome 17.0.963.46 but not with Konqueror. (Does not matter, who uses it?) [EDITED] I had update my mozilla to the last stable version in winxp machine and update also de jQuery to 1.7.1, and now it works!

Thanks @sethlilly.

devasia2112 avatar Feb 16 '12 21:02 devasia2112

I'm going crazy... kinda new at this and can't get my dropdown to work either. Can anyone take a look at the files where i'm going wrong? I really have no idea! Tried everything i could find about the issue.

http://www.buzz-creative.nl/_downloads/bootstrap.zip

Thanks in advance!

meltdown87 avatar May 12 '12 13:05 meltdown87

Well, It is very simple! I just fixed your header, js/jquery-1.7.2.min.js call must be first than everything else.. Here is a work sample.. http://jsfiddle.net/XR2ef/1/

devasia2112 avatar May 12 '12 22:05 devasia2112

Thanks a million, didn't know that! Glad to know i'm not a complete idiot for gettin' the entire code wrong :p

meltdown87 avatar May 13 '12 10:05 meltdown87

I seem to have a similar problem except when I click on the drop-down, I get a small upward white caret.

I saw https://github.com/twitter/bootstrap/issues/4845 and it seems it could be the same error. I tried modifying what they did, with no luck.

My current .erb looks like this:

http://sprunge.us/TiUU?html

Any thoughts as to what I could be doing incorrectly?

lhejazi avatar Nov 18 '12 11:11 lhejazi