| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: May 2003
Posts: 2,187
![]() ![]() ![]() | hide/show forms with javascript hey people im making a script for work and i h ave to radio buttons one yes and one no when they click yes i need a div tag with a textbox to appear to so they can enter text and then when they click no it goes away i have a working version in ie but not in mozilla heres my code Code: <SCRIPT language="JavaScript"> document.all.txtbox.style.display ='none'; </SCRIPT> <input type='button' value='Yes' class='button'onClick="document.all.txtbox.style.display =''"> <SPAN ID="txtbox" STYLE="position:absoloute; display:none"> YOUR HTML CODE or FIELDS </SPAN> |
| |