Hide/show forms with Javascript

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

adam_uk

Established Member
Impact
20
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>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
CatchedCatched

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back