Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Way to gray out the 2nd form button until the first one is clicked?

Status
Not open for further replies.

buzzybee

Programmer
May 23, 2001
17
US
I have 2 forms on a page. I would like to have the second button 'grayed out' until the first button has been clicked, any ideas?
actually, I have a sentence, "Did the page print correctly? and yes/no buttons. Can i have these items 'appear' when the 'print letter' button is clicked?
TIA
Amanda
 
document.formName.elementName.style.visibility = 'hidden'

and likewise:

document.formName.elementName.style.visibility = 'visible'

You can call those statements in onClick functions for your buttons.

:)
Paul Prewett
penny.gif
penny.gif
 
ok, not to sound like a dunce, but how do i use those? I get the onclick for making them visible when the top button is clicked, but how do i make the buttons and sentence hide before it is clicked?

Amanda
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top