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

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  += means...
PostPosted: August 5th, 2009, 6:05 am 

Posts: 19
would someone explain please what does this line means?
object1.value += input.value;

i know what + is used for, also =, but +=?


Top
 Profile  
 
  Re: += means...
PostPosted: August 5th, 2009, 6:16 am 
User avatar

Posts: 81
object1.value will keep its value and it will also add input.value
For example
ob1.value='my';
input.value=' home';
ob1.value += input.value;
alert (ob1.value); // the alert will say "my home"


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

FORUMS » Client Side » JavaScript


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