» Birthday Bundle - Over $400 worth of Envato files for just $20

Generate a jQuery UI Slider using Data from a Select Element

Posted on August 22, 2009, Filled under jQuery,  Bookmark it

jQuery UI selectToUISlider Plugin uses progressive enhancement to replace an already-functional HTML select element with a JQuery UI Slider control. Having both ARIA and tabindex support, it adds a number of features for both visual users and those on assistive technologies. The user is able to make a choice even with JavaScript disabled, since the select element can be used if the slider is unavailable.

jquery-ui-slider

Basic Usage

HTML

<select name="speed" id="speed">
  <option value="Slower">Slower</option>
  <option value="Slow">Slow</option>
  <option value="Med" selected="selected">Med</option>
  <option value="Fast">Fast</option>
  <option value="Faster">Faster</option>
</select>

JavaScript

$('select').selectToUISlider();

Features include:

  • Unobtrusive
  • Very easy to setup
  • Accessible to users on assistive devices
  • Degrades gracefully if JavaScript is disabled

The plugin enhances the jQuery UI slider in many ways, adding text labels and ticks on the slider axis, and tooltips that appear while a slider is being used.

Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!

Get our RSS Feed!

4 Replies to "Generate a jQuery UI Slider using Data from a Select Element"

  1. [...] This post was Twitted by toncijukic [...]

  2. [...] Generate a JQuery UI Slider using Data from a Select Element http://www.bitrepository.com/generate-a-jquery-ui-slider-using-data-from-a-select-element.html – view page – cached #Bit Repository » Generate a JQuery UI Slider using Data from a Select Element Comments Feed Bit Repository PHP: How to redirect a visitor A JQuery Unobtrusive Time Picker Plugin: jquery.timepickr Bit Repository Community News RSS Feed — From the page [...]

  3. [...] This post was Twitted by hkitago [...]

  4. [...] jQuery based slider that uses data from a select element. – Link. [...]

Leave a Reply


* = required fields

  (will not be published)


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Note: If you want to post CODE Snippets, please make them postable first!
(e.g. <br /> should be converted to &lt;br /&gt;)