Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys how i can to make change value textbox by users in JavaScript?
Posted
Comments
Sergey Alexandrovich Kryukov 28-Dec-12 14:23pm    
Not clear. Changing a text box value is what the users usually do with it, isn't it?
—SA
markohack 28-Dec-12 14:36pm    
when user enter any text in textbox the value of textbox must be change.how?
Christopher Drake 28-Dec-12 14:58pm    
Are you trying to react to the user changing the value of the textbox?
markohack 28-Dec-12 15:10pm    
exactly.
Sergey Alexandrovich Kryukov 28-Dec-12 15:09pm    
What, same text box? But it is already changed...
—SA

1 solution

Put this in your page and assign it to your textbox:

TextBox1.Attributes.Add("onchange", "yourJavaScriptFunction();");


change the "TextBox1" to your text box name
Change the "yourJavaScriptFunction()" to the function you want it to hit when the
text of your text box changes.

Hope that helps.
 
Share this answer
 
Comments
markohack 28-Dec-12 16:01pm    
Thanks,but it ,not what i mean.
M.Edmison 28-Dec-12 21:01pm    
It seems we are not sure what you are wanting to do. My apologies.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900