Click here to Skip to main content
12,402,666 members (72,984 online)
Rate this:
 
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 8:16am
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
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
 
good
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.
  Permalink  
Comments
markohack 28-Dec-12 16:01pm
   
Thanks,but it ,not what i mean.
wolfcoder75 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 | Mobile
Web02 | 2.8.160721.1 | Last Updated 28 Dec 2012
Copyright © CodeProject, 1999-2016
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