|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||||
|
|||||
|
Showing a textbox with an onchange event
Hi, I have a listbox that has 2 values Current Images and New Images. I want to be able to have a textbox show on the page when New Images is selected and have it disapear when the other is selected. I know this is javascript and i know basically how to do it but i dont know how to get a textbox to show or hide. Here's what i have. php Code:
Any help is appreciated! |
|
#2
|
|||
|
|||
|
RE: Showing a textbox with an onchange event
suppose we have a textbox, and we put it in a hidden layer:
<div id="theLayer" style="display:none"> <input type="text" name="someTextbox" /> </div> now, we can use this to show the textbox by making the layer visible: document.getElementById('theLayer').style.display = 'block'; and this to hide it again: document.getElementById('theLayer').style.display = 'none'; I could also have used the visibility: hidden/visible option, but that will cause the hidden element to take up space even when it is hidden. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Showing a textbox with an onchange event |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|