Make a input field's value dissappear.
In this tutorial you will learn how to making an input field's value dissappear.
Category: Coding
Views: 1961

Make a input field's value dissappear. Welcome, in this tutorial you will learn how to making an input field's value dissappear.

Code:


Basicly what this does is when the value of field1 is example, it dissappears on click. lets break the code down some more.

Code:
function checkvalue(){
This is where we declare our function.

Code:
if(document.form1.field1.value=='example'){
var value=document.form1.field1.value='';
This code checks if example is the value and if it is it replaces it with nothing.

If you would like more help with this tutorial please register and visit the forum.

About Michael

Michael Dunlop Michael Dunlop personal statement

“But I am already older than 21”, I hear you cry. Don’t worry, despite the name, the information and advice is more geared towards retiring prior to having a fake hip installed.

Website Sponsors
Get Retire at 21's FREE Secrets

Get Retire at 21's FREE Secrets

Find out how I'm going to Retire VERY Early Subscribe for my Free Secrets Privacy Guaranteed. 100% Spam free.

Join The Forum
Recommended Websites
Credit card processing made easy! Same day approvals, no application fee, free setup, 24/7 customer support, free equipment, and more. Cardaccept is the clear choice.
Rotate and track a GIF, JPG, PNG, FLASH and text ads on your website. Sell Advertising and accept payments. Free Trial, No credit card needed.
Create stuning Flash websites at Wix.com, Seo Friendly, Drag & Drop builder.
See how you can do it. Brand new system just went "live." Get in early to change your financial future. Act now, don't delay.
 
Advertise Here
Feature Interviews
Darren Rowse is perhaps the most famous ... Read more
Todays interview is with Rachna Kingston ... Read more
This is an awesome interview. I ... Read more
David is a 20 year old ... Read more
Recommended Resources