Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Converting a drop down list into Bootstrap

Posted on 2015-02-24
3
154 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
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).

829 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