dshrenik
asked on
Change the visibility of an HTML textbox.
I am able to hide a textbox by doing:
var tb1 = document.getElementById(id );
tb1.style.display = "none";
However, I am not able to make it visible by doing this:
tb1.style.display = "";
Please let me know what I could be missing. Thanks!
var tb1 = document.getElementById(id
tb1.style.display = "none";
However, I am not able to make it visible by doing this:
tb1.style.display = "";
Please let me know what I could be missing. Thanks!
use : tb1.style.display = "block";
ASKER
Still does not work. :(
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<< the textbox DON'T EXIST in the page so you CAN'T ask javascript to show it >>
ASKER
I am actually creating an HTML textbox through JavaScript.
ASKER
I think the textbox is inside a <td>, and I have set:
<td style="display: none">
Phew!
<td style="display: none">
Phew!