jQuery plugin manage custom select tag like real
This plugin allows you to manage a select tag with a custom style like a real select tag, as we are not able to style a select tag at all I came up with the idea to fix my needs.
Super easy!
<select name="testing" id="testing">
<option value="">Select one</option>
<option value="1">nodejs</option>
<option value="2">backbone</option>
<option value="3">angularjs</option>
<option value="4">emberjs</option>
<option value="5">meteorjs</option>
</select>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../src/jquery.stylized-selector.js"></script>
<script type="text/javascript">
$(function()
{
$('select').stylizedSelector({
arrowIconClass: 'arrow'
});
});
</script>
Name | Default | Type | Options |
---|---|---|---|
hiddenClass | hidden | class | css class |
wrapperClass | select | class | css class |
styledSelectorClass | styled-select | class | css class |
optionsClass | options | class | css class |
openSelectorClass | open | class | css class |
activeOptionClass | selected | class | css class |
currentTextClass | current | class | css class |
isMultipleClass | multiple | class | css class |
arrowIconClass | false | mixed | false/css class |
onKeyDownTimeout | 2000 | milliseconds | number |
onOpen | function(){} | callback | function |
onChange | function(){} | callback | function |
- Normal select features
- Moving through options with keyboard
- Search through options with keyboard
- Pull requests are accepted :)
Check issues known!