Forum Moderators: open
<form id="d1">
<select id="mySelect" onchange="return showhide('nav',this)">
<option id="Apple">Apple</option>
<option id="Pear">Pear</option>
<option id="Banana">Banana</option>
<option id="Orange">Orange</option>
</select>
</form>
<div id="nav"></div>
</body>
</html>
this is a simple code to show the option id into div.
problem that its only show it for once.
and when changing the option it doesn't make any sense .
its only show the first selected option only .
lets say we choose Pear it will show number 1.
when change the option its show the same id for pear i mean it show number again.
any help?
thank you
<form id="d1">
<select id="mySelect" onchange="return showhide('nav',this)">
<option id="Apple">Apple</option>
<option id="Pear">Pear</option>
<option id="Banana">Banana</option>
<option id="Orange">Orange</option>
</select>
</form>
<div id="nav"></div>
</body>
</html>
thank you so much problem resolved