Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:andrewfiorillo/FancySelect
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#Fancy Select | ||
|
||
Custom select boxes that retain native functionality. A work in progress. | ||
|
||
<a href="http://www.stuffmadeofthings.com/fancyselect/" target="_blank">View Demo →</a> | ||
|
||
|
||
##Premise | ||
|
||
- Allow full custom-styled select elements, primarily through CSS | ||
- Minimal additional markup | ||
- Minimal js needed | ||
- Retain (not recreate) native functionality like tabbing, keyboard control, and native dropdown menu | ||
- Degrade gracefully for browsers that don't support (IE6 and IE7) | ||
|
||
|
||
##Usage | ||
|
||
include fancyselect.css, jquery.js, and fancyselect.js: | ||
|
||
```html | ||
<link rel="stylesheet" href="css/fancyselect.css" type="text/css" /> | ||
<script type="text/javascript" src="js/jquery.js"></script> | ||
<script type="text/javascript" src="js/fancyselect.js"></script> | ||
``` | ||
|
||
Call fancyselect on the selects you want to style: | ||
|
||
```JavaScript | ||
$(document).ready(function() { | ||
$("#wrapper select").fancyselect(); | ||
}); | ||
``` | ||
|
||
|
||
##Still to do | ||
- Cross-browser fixes | ||
- Smarter plugin implementation | ||
- Testing, testing testing | ||
|