can any body tell me, how to change content of option box while placing cursor on different picture, e,g if I move cursor to the picture of tea shrt it related price in the option box or edit box is changed.
[code=html] <select id="select"> <option value="test1" id="test1">Test1</option> <option value="test2" id="test2" selected >Test2</option> <option value="test3" id="test3">Test3</option> </select> <br /> <br /> <br /> <img src="http://www.google.com/intl/en_ALL/images/logo.gif" alt="" onmouseover="change_option('test1');" /> [/code]
[CODE] function change_option(id) { var sel = document.getElementById('select'); var children = sel.childNodes; for (var i = 0; i < children.length; i++) { if (children[i].selected) children[i].selected = false; } document.getElementById('select').selected = true; } [/CODE]
Help @sikandar spread the word by sharing this article on Twitter...