Solved

Converting a drop down list into Bootstrap

Posted on 2015-02-24
3
153 Views
Last Modified: 2016-02-25
Hi
I have the following DDL:
<ul id="buttons">
      <label for="activities">Activity</label>      
      <select id="activities" onChange="setMarkers();">
        <option value="venues">Venues</option>
        <option value="bikes">Bikes</option>        
        <option value="all" selected="selected">show all</option>
      </select>
      <label for="prices">Prices</label>  
      <select id="prices" onChange="setMarkers();">
        <option value="0">0</option>
        <option value="< 5">< 5</option>
        <option value="> 5">> 5</option>
        <option value="< 10">< 10</option>
        <option value="> 10">> 10</option>
        <option value="all" selected="selected">show all</option>
      </select>
   </ul> 

Open in new window


I want to make this look good by using the bootstrap framework but I haven't been able to find any information on how I can build a drop down list with HTML that will do the same as the above... adding value="" doesn't appear to work!

thanks
0
Comment
Question by:lz7cjc
3 Comments
 
LVL 25

Expert Comment

by:lenamtl
ID: 40628850
Hi,
See the Bootstrap documentation about dropdown:
http://getbootstrap.com/components/#btn-dropdowns
and this require the javascript http://getbootstrap.com/javascript/#dropdowns

Here is an few example: http://bootsnipp.com/snippets/featured/button-dropdown-select

you can use data-value="myvalue"
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 40628945
A jsfiddle sample using your list. I included an example of how you might capture selections.

http://jsfiddle.net/tommyBoy/zxjnL990/
0
 

Author Comment

by:lz7cjc
ID: 40630394
fantastic - thanks v much
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question