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

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  dinamically assign variables values
PostPosted: August 10th, 2009, 3:07 pm 

Posts: 25
I know that when you submit a form the variables take their values from the data of the form,
e.g. if a input1 has anytext, input1=anytext

but im looking a way to give variables the value of the inputs even before the form is submitted, as the user types,
e.g. if the user has only typed anyt, input1=anyt, even before the form is submitted

Does anyone knows how to do it? how to assign values to variables before the form is submitted?


Top
 Profile  
 
  Re: dinamically assign variables values
PostPosted: August 10th, 2009, 3:47 pm 

Posts: 42
<input onkeyup="x=this.value;" />
hope this is what you meant


Top
 Profile  
 
  Re: dinamically assign variables values
PostPosted: August 10th, 2009, 4:24 pm 

Posts: 25
Yeah, thx.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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