How to make custom Select Boxes
With Jquery and the Select tag
Making forms look good is often one of the most challenging parts of being a web designer. Select boxes specifically are very difficult. They look completely different in different browsers. Lucky, there are plenty of ways to replace them with hidden input fields. However, recently I've had to deal with 3rd party custom tags that generate dynamic select boxes. The only way to style these is by allowing them to load and then use the DOM to manipulate or replace them. I couldn't find any example of his online, so I was forced to figure out how to do it myself. I hope the code below will help someone else out.
Sample:
The code:
Update
8-4-2009
I've made a few improvements to the script based on user feed back and created a demo that you can now download;
Download the Jquery Select Box Demo
