Monday, March 16, 2009

JavaScript image combobox/ JavaScript image dropdown

JavaScript custom dropdown


JavaScript image combobox



I was looking for a JavaScript custom image dropdown. Of course I did some googling also. But I did not find what I was looking for. So I've decided to make my own javascript dropdown. It works with your existing "select" element. I hope you'll like this.


Custom dropdown features:



  • Fully Skin-able

  • Your original dropdown is safe, so your form post will not be messed

  • An image can be inserted with your text.

  • You can covert all combobox as a custom combobox, you can convert by id, multiple ids, or by wild card. We'll see that in example.

  • Only 10 KB without any compression.



Dependency:



Jquery 1.2.6 or later.


Custom dropdown weakness:



  • You need to replace "onchange" with "onblur" if you are using any onchange method with your dropdown.

  • re-population is not working for now.



I don't want to make this document complicated. So coming directly to examples.

No comments:

Post a Comment