Solved

Converting a drop down list into Bootstrap

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

Expert Comment

by:lenamtl
Comment Utility
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
Comment Utility
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
Comment Utility
fantastic - thanks v much
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now