The Custom Combobox is a JQuery plugin that enables you to customize the select element of webpages. Why use a custom implementation, well one of the reason is that it can be skinned to match the style of your website or web application. Or prehaps the more compelling reason that Internet Explorer 6 has some issues with the with of the drop down part of the select.
Download current version here.
A prerequisite for using this plugin is the JQuery Javascript file. This must be included on any page that you wish to use the custom combobox. Below is a sample of how the combobox can be used.
<script src="jquery-1.4.3-min.js" type="text/Javascript"></script>
<script src="custom-select-min.js" type="text/Javascript"></script>
<link href="custom-select.css" rel="stylesheet" type="text/css" />
Example of custom combobox:
<select id="mybox" name="mybox">
<option selected="selected" value="1">My custom value 1</option>
<option value="2">My custom value 2</option>
<option value="3">My custom value 3</option>
<option value="4">My custom value 4</option>
</select>
<script type="text/Javascript">
$(document).ready(function() {
$("#mybox").SelectBox();
});
</script>
You can customize the combobox even further by setting some of the properties and passing them allong to the constructor call. The following properties are currently supported:
| Property | Support |
| scroll | Indicate when the scrollbar should be shown. Can be any of scroll, auto, none |
| allowSubs | Prevent generating of sub lists (default false) |
In the current version the following issues are already known and should be kept in mind when using it.
| Custom Combobox 1.0 | |
| Release date: | 7 february 2011 |
| Log: |
|