Selectyze: Skin your own selects lists with jQuery & CSS

If you work with a web designer, sometimes, you want to kill him because he skins select lists into .psd templates.

Now, it’s possible to skin them with Selectyze plugin !!

Skin your HTML select lists easily with Selectyze plugin.

It works with IE6-9, chrome, Safari, Firefox..

HOW DOES IT WORK ?

Selectyze hides your select element, and build a div just below the select element.

Download: https://github.com/smiler/Selectyze

Demonstration:

Plugin homepage:

Implementation:

1. FIRST, INCLUDE THE CSS & JQUERY FILES

<!-- include CSS & JS files -->
<!-- CSS file -->
<link rel="stylesheet" type="text/css" href="Selectyze.jquery.css" media="screen" />
<!-- jQuery files -->
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="Selectyze.jquery.min.js"></script>

2. ADD YOUR HTML

<!-- Basic / Normal HTML Select element -->
<select name="my_select" class="selectyze">
    <option>- -</option>
    <!-- Don't forget selected="selected" if you want this option selected by default -->
    <option value="value1" selected="selected">Value 1</option>
    <option value="value2">Value 2</option>
</select>

3. NOW, CALL THE SELECTYZE PLUGIN

<script type="text/javascript">
    $(document).ready(function(){
        // simple Selectyze call
        $(".selectyze").Selectyze();
        // call with options
        $(".selectyze").Selectyze({
            theme:'css3',
            effectOpen:'fade',
            effectClose:'slide'
        });
    });
</script>

Options:

themeStringDefault : ‘css3’ – Theme used. Our plugin contains css3, firefox, grey, mac and skype
effectOpenStringDefault : ‘slide’ – Effect when the list is opened
effectCloseStringDefault : ‘slide’ – Effect when the list is closed
preventCloseBooleanDefault : false – Prevent closing the dropdown when is set to ‘true’

Screenshots:

Multi Step Form Using HTML and JavaScript

Form is the important part in web design. Form is the primary interface to the user by which user is…

How to Create Custom CSS, jQuery Autocomplete Plugin

Web developers often use autocomplete features in websites as a part of their work. Yet lot of good …

How to Make Sticky Sidebar Using jQuery and CSS

Sticky sidebar is an essential part of web development. Not in all cases but for some cases where ou…

Selectors, Animation, and AJAX – jQuery Tutorial And Examples

By now I’m sure you have grasped at least the basics and simplicity of the jQuery library. Now it’s …

s3Slider jQuery Plugin & Tutorial

The s3Slider jQuery plugin is made by example of jd`s smooth slide show script. Usage: HTML: Sample …

jQuery Optimization: Avoid Unnecessary Selector

Common subexpression elimination is a common way to optimize any programming code. Doing unnecessary…