I want to change select box style by using css and jquery is it possible?
+2
A:
u can use one of this plugin
http://www.queness.com/post/204/25-jquery-plugins-that-enhance-and-beautify-html-form-elements
Haim Evgi
2009-08-12 13:35:28
A:
There is the .css() jQuery function, but I would shy away from changing styles in this way. Keeping the CSS in one place is definaley a plus.
You could declare another class in your CSS stylesheet, and use the jQuery class functions - .addClass() .removeClass() .toggleClass()
functions to change the style on the element that way.
For example:
$("#MySelect").removeClass("OldClass").addClass("NewClass");
Or, if you ever wanted to toggle between:
$("#MySelect").toggleClass("OldClass").toggleClass("NewClass");
Not tested, but should be ok or nearly ok!
James Wiseman
2009-08-12 13:39:31
This received a down vote. Could someone comment as to why?
James Wiseman
2009-08-12 13:42:48