GezH
Programmer
- Aug 7, 2002
- 68
Hi again.
I have two blocks of code surrounded by div tags as below:
<DIV id=div1 STYLE="DISPLAY:INLINE">
Sample text one
</DIV>
<DIV id=div2 STYLE="DISPLAY:NONE">
Sample text two
</DIV>
I want a select box with two options. Selecting an option hides one div item and shows the other, whilst selecting the other does vice-versa.
How can I achieve this please?
Thanks for any help.
I have two blocks of code surrounded by div tags as below:
<DIV id=div1 STYLE="DISPLAY:INLINE">
Sample text one
</DIV>
<DIV id=div2 STYLE="DISPLAY:NONE">
Sample text two
</DIV>
I want a select box with two options. Selecting an option hides one div item and shows the other, whilst selecting the other does vice-versa.
How can I achieve this please?
Thanks for any help.