Image and select box

Here is a simple JavaScript code made for selecting the dropdown option by clicking on an outside source like an image, text or something else and reverses. I used example of ecommerce web site where you have to select a credit card to make a transaction, in 99% cases there is a plain drop down box, why not to add an extra feature. Just use this code and bust UI.

This code allows users to click on the image to select the dropdown box, or select the card form the dropdown box. I really don’t know how to explain, just click and see.
Now I will do my best to explain the code, but don’t expect too much.

I hope you like it and you find it usefull.

The code was made on my work at , and my friend and developer helped me, he is Tomislav Šantek

The code was tested in: Firefox 5.0, Google Chrome 12.0, Opera 11.50, Safary 4.0, IE 7,8,9.