Relevant-Dropdowns

by CSS-Tricks

129 Stars 46 Forks Last release: Not found 59 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Relevant Dropdown

A HTML5 datalist polyfill that depends on jQuery and Modernizr.

Datalist browser support (Dec 2011) is Firefox 4+, Opera 10.6+, and IE 10. It's reasonable that you'd want WebKit support. So. This.

Example HTML5 Markup

    
    

  

Include jQuery and Modernizr in head of document


Run the Modernizr test, and load polyfill stuff if needed


load-fallbacks.js calls the plugin. Example contents:

$('#search').relevantDropdown();

$('#name').relevantDropdown({ fadeOutSpeed: 0, // optional, default: 'normal; change: function(new_text) { console.log('the new value is: ', new_text); } });

TODO

  • Better IE styling (drop shadows don't work)
  • Remove Modernizr and jQuery dependencies (make totally standalone)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.