Linto's Blog

Just another WordPress.com weblog

Remove and display the value from textbox,by javaascript November 9, 2011

Filed under: Javascript — linodavis @ 5:37 pm

<input id=”zipcode1″ name=”zipcode” type=”text” value=”Enter Zip Code” onBlur=”if(this.value==”)this.value=this.defaultValue;” onFocus=”if(this.value==this.defaultValue)this.value=”;” maxlength=”5″>

Advertisement
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.