How to get the value of a textbox modified by asp.net ajax from client side(by javascript)?
Posted
by Aaron
on Stack Overflow
See other posts from Stack Overflow
or by Aaron
Published on 2010-04-26T20:41:11Z
Indexed on
2010/04/26
20:43 UTC
Read the original article
Hit count: 115
asp.net-ajax
|JavaScript
I have a textbox in a asp.net update control. When I click a button on the webpage, the value of this textbox got modified. And I want to use javascript to get the modified value. The code I use was:
var kmlString = document.getElementById('<%=TextBox1.ClientID%>').getAttribute("value");
It only got the original value of my textbox. I am wondering how can I get the latest value of the textbox through javascript. The browsers I intent to use is Firefox and Safari. So it would be great if the script can work for both browsers.
Thanks very much!
© Stack Overflow or respective owner