View Single Post
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

Re: onclick text box?

 
0
  #9
Dec 4th, 2008
Break the code by using (;), and your code should be like this -->
  1. <form action="*" onsubmit="return false;" name="myForm">
  2. <input type="text" name="myText" value="Enter some text!" onclick="this.value='';this.style.visibility='hidden';" size="30" />&nbsp;
  3. <input type="button" name="myButton" value="Show Me!" onclick="document.myForm.myText.style.visibility='visible';" />
  4. </form>
Hope it clear's you up! Enjoy...
Reply With Quote