Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include a checkbox in Twitter Bootstrap drop-down menu

I want to include checkbox in Twitter Bootstrap drop-down menu's but I'm unable to get the menu text (in <a>..</a>) to sit beside the checkbox. I have read up on the CSS used for Forms and have tried a variety of things to no avail.

This is what I think should work, but doesn't.

<li><label class="checkbox" ><input type="checkbox">aaa</label><a href="#" style="float:left"></a></li>

Neville

like image 771
nevf Avatar asked Mar 17 '12 09:03

nevf


1 Answers

A line of javascript to resolve the problem in Oleg answer: http://jsfiddle.net/Wsc9r/

like image 158
Tommaso Avatar answered Oct 22 '22 11:10

Tommaso