jakobk
jakobk

Reputation: 1132

jQuery / CSS: I need a plugin, that lets me change the style of a <select> form element

I want to use a good old form element on my page. But I don't like the styling of it, how can I change it, is there quick way to do this in CSS, searched a lot, did'nt find a good answer, or do I need a jQuery plugin (which one?) ?

Thanks, Jakob

Upvotes: 0

Views: 152

Answers (5)

Martin Borthiry
Martin Borthiry

Reputation: 5326

Why not css ??

select{
  color: gray; border: 1px solid blue; /*... other styling*/
}

Upvotes: 0

Ashok Padmanabhan
Ashok Padmanabhan

Reputation: 2120

I dont think you can style a select element. it won't work cross-browser. The only way is to use JS to style it how you want it to look and then have it degrade gracefully without JS on. Note i have not tried using js/jquery to controlthe appearance of a select list - have no idea how well it will degrade in downlevel browsers.

See this SO post and this site

Jquery option

Upvotes: 1

Graeme Leighfield
Graeme Leighfield

Reputation: 3005

It can all be done via CSS.

After a quick google search here is a resource with loads of examples in!

http://www.noupe.com/css/form-elements-40-cssjs-styling-and-functionality-techniques.html

Upvotes: 0

Rory McCrossan
Rory McCrossan

Reputation: 337733

This really isn't the type of question SO was created for.

Even so, I'm a helpful type: http://www.tripwiremagazine.com/2011/06/jquery-forms-plugins.html

Upvotes: 0

Related Questions