On 15/02/2012 18:52, Lindsay wrote:
I also tried it with the ID field.

On Feb 15, 10:51 am, Lindsay<[email protected]>  wrote:
I'm still confused. I tried this:

<div class="btn-toolbar">
             <div class="btn-group">
                 <a class="btn dropdown-toggle" data-toggle="dropdown"
href="#menu1">
                 Action
                 <span class="caret"></span>
                 </a>
                 <ul name="menu1" class="dropdown-menu">
                     <li><a href="#">test</a></li>
                 </ul>
             </div>
         </div>

On Feb 14, 10:06 pm, Sam Sherlock<[email protected]>  wrote:







On 15/02/2012 02:07, Lindsay wrote:
I'm very confused, it still doesn't work for me (the js fiddle you
linked). It does the same thing as before: takes me to the top of the
page. Do I need to move the drop down class to the li? I thought
bootstrap would automatically find/apply it.
On Feb 14, 4:59 pm, Sam Sherlock<[email protected]>    wrote:
On 14/02/2012 23:19, Lindsay wrote:
I've tested on Chrome and IE 9.
On Feb 14, 3:19 pm, Lindsay<[email protected]>      wrote:
Tried that, didn't help.
Here is the Fiddle link:http://jsfiddle.net/fWvFG/
On Feb 13, 9:07 pm, limodou<[email protected]>      wrote:
On Tue, Feb 14, 2012 at 6:26 AM, Sam Sherlock<[email protected]>      
wrote:
Link? Js fiddle of code?
maybe you should always add bootstrap-button.js to the page.
--
I like python!
UliPad<<The Python Editor>>:http://code.google.com/p/ulipad/
UliWeb<<simple web framework>>:http://code.google.com/p/uliweb/
My Blog:http://hi.baidu.com/limodou
So I fiddled a bit
the bootstrap docs have the dropdown with a ul and the dropdown class is
applied to li
(which in turn gets the class open when anchor is clicked to display the
subnav)
also I changed the lib to jquery and onDomReady
http://jsfiddle.net/Rkn9f/
the plugin has been updated since the code your using for the dropdown
add a data-target and set that to the id of your menu
href should be just #
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                Action
<span class="caret"></span>
</a>
<ul     class="dropdown-menu">
<li><a href="#">test</a></li>
</ul>


Reply via email to