Click here to Skip to main content
13,588,544 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi guys how i can to make change value textbox by users in JavaScript?
Posted 28-Dec-12 8:16am
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?
markohack 28-Dec-12 14:36pm
when user enter any text in textbox the value of textbox must be
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
Sergey Alexandrovich Kryukov 28-Dec-12 15:09pm
What, same text box? But it is already changed...
Christopher Drake 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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.180615.1 | Last Updated 28 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

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