View Single Post
Join Date: Jul 2008
Posts: 58
Reputation: besktrap is an unknown quantity at this point 
Solved Threads: 1
besktrap's Avatar
besktrap besktrap is offline Offline
Junior Poster in Training

Re: onclick text box?

 
0
  #8
Dec 4th, 2008
so I have these two chunks of code:

  1. <form action="#" onsubmit="return false;">
  2. <input type="text" value="Email" name="Email"
  3. style="color:grey;text-align:left;background:white"
  4. onfocus="this.style.color = '#000';"
  5. onblur="this.style.color = '#aaa';" />
  6. </form>

&

<input type="text" value="Enter Some Text!" size="30" onclick="this.value='';" />

How would I combine the two?
Last edited by peter_budo; Dec 6th, 2008 at 5:28 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote