Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Javascript HTML
Hi guys how i can to make change value textbox by users in JavaScript?
Posted 28-Dec-12 9:16am
Sergey Alexandrovich Kryukov at 28-Dec-12 14:23pm
Not clear. Changing a text box value is what the users usually do with it, isn't it?
markohack at 28-Dec-12 14:36pm
when user enter any text in textbox the value of textbox must be
Christopher Drake at 28-Dec-12 14:58pm
Are you trying to react to the user changing the value of the textbox?
markohack at 28-Dec-12 15:10pm
Sergey Alexandrovich Kryukov at 28-Dec-12 15:09pm
What, same text box? But it is already changed...
Christopher Drake at 28-Dec-12 16:22pm
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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

  Print Answers RSS
0 Sascha Lefévre 500
1 Sergey Alexandrovich Kryukov 300
2 Abhinav S 230
3 Maciej Los 210
4 Richard Deeming 105
0 Sergey Alexandrovich Kryukov 6,928
1 OriginalGriff 6,381
2 Maciej Los 2,782
3 Abhinav S 2,732
4 Peter Leow 2,694

Advertise | Privacy | Mobile
Web04 | 2.8.150414.1 | Last Updated 28 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100