Click here to Skip to main content
Sign Up to vote bad
good
See more: JavascriptHTML
Hi guys how i can to make change value textbox by users in JavaScript?
Posted 28 Dec '12 - 8:16

Comments
Sergey Alexandrovich Kryukov - 28 Dec '12 - 14:23
Not clear. Changing a text box value is what the users usually do with it, isn't it? —SA
markohack - 28 Dec '12 - 14:36
when user enter any text in textbox the value of textbox must be change.how?
Christopher Drake - 28 Dec '12 - 14:58
Are you trying to react to the user changing the value of the textbox?
markohack - 28 Dec '12 - 15:10
exactly.
Sergey Alexandrovich Kryukov - 28 Dec '12 - 15:09
What, same text box? But it is already changed... —SA
Christopher Drake - 28 Dec '12 - 16:22
Are you trying to translate text entered by a user? It looks like you are using JSONP to dynamically inject a script element in your html. What are you trying to do exactly?

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.
  Permalink  
Comments
markohack - 28 Dec '12 - 16:01
Thanks,but it ,not what i mean.
wolfcoder75 - 28 Dec '12 - 21:01
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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 393
1 OriginalGriff 335
2 Arun Vasu 315
3 Maciej Los 238
4 Aarti Meswania 180
0 Sergey Alexandrovich Kryukov 9,680
1 OriginalGriff 7,539
2 CPallini 4,018
3 Rohan Leuva 3,362
4 Maciej Los 2,951


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 28 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid