sparkbox / Custom-Selectbox

Select box UI replacement
70 stars 25 forks source link

Custom SelectBox UI Replacement

This is a UI replacement for default select boxes that leaves mobile browsers (iOS and Android) default UI intact.

Usage

HTML

<link rel="stylesheet" href="https://github.com/sparkbox/Custom-Selectbox/blob/master/css/sparkbox-select.css">

...

<form>
  <select class="sparkbox-custom">
    <option value="the_googs">Chrome</option>
    <option value="the_faris">Safari</option>
    <option value="foxfire">Firefox</option>
    <option value="the_splora">IE 9</option>
  </select>
  <input type="submit"/>
</form>

JavaScript

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="https://github.com/sparkbox/Custom-Selectbox/raw/master/js/jquery.sparkbox-select.js"></script>
<script>
  ('.sparkbox-custom').sbCustomSelect();
</script>

Tested in

Mac

Windows

Legal Stuff

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.