If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jul 2007
    Member #
    Check out this site I found...

    On the right side of the page where you fill out the little form to sign up for the newsletter I want to know how they made the fields so when you click on one of them the text in the fields such as "First Name" totally erases as soon as you click on it. I want to do somehting like this with the form fields on my site but don't know what they are doing to envoke this. Java?


  3. #2
    Senior Member paintingtheweb's Avatar
    Join Date
    Jul 2007
    Las Vegas
    Member #
    very simple - it's actually in their source code too. Here ya go.
    <input name="First_Name" class="textField" type="text" maxlength="80" value="First Name" onblur="if(this.value==''){this.value='First Name'}" onfocus="if(this.value=='First Name'){this.value=''}"/>

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search tags for this page

default text in forms disappear on click

Click on a term to search for related topics.
All times are GMT -6. The time now is 06:06 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: