Welcome visitor
* Login
* Register
It is currently September 19th, 2019, 10:16 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  clear input field onclick but just the first time
PostPosted: November 3rd, 2009, 1:15 am 

Posts: 15
What is the code to make disappear content on an input field?
<input value="example" />
let say that you have that imput and when you click it the first time "example" disappears, but just the first time.


Top
 Profile  
 
  Re: clear input field onclick but just the first time
PostPosted: November 3rd, 2009, 1:37 am 
User avatar

Posts: 71
<input value="example" 
onfocus="if(typeof i == 'undefined'){this.value='';i=1;}" />
;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron