Submit your widget

style form select plugin with jQuery

Created 4 years ago   Views 12850   downloads 2007    Author vst
style form select plugin with jQuery
View DemoDownload 685.9 KB
61
Share |

This is a  jQuery plugin to style <select>elements. That's pretty much it.

BASIC EXAMPLE

Apply the plugin and you're good to go.

$("select").selectOrDie();

CUSTOM CLASS/ID

"" by default

Maybe you have multiple selects on the same page and one should look different, or whatever need you can find for a custom class/ID. In this example we're using a custom class give the SoD a different look

$("select").selectOrDie({
    customClass: "custom",
    customID:    "custom"
});

or

$("select").selectOrDie();
<select data-custom-id="custom" data-custom-class="custom">

Read more:http://vst.mn/selectordie/.

Tag: style form