Click to See Complete Forum and Search --> : retrieve value from asp.net to javascript
BlitzCel
Jun 4th, 2004, 02:56 AM
hi... i got a problem here... i need to retrieve value from a textbox created by asp.net and put it in a textarea in javascript... is there any solution to it??
thankz
regard
nemaroller
Jun 4th, 2004, 07:10 AM
You can do this by grabbing the .clientID of a textbox and throwing it into a registerclientscriptblock function... or, if the id's are static, bypass the server side code and using a simple javascript function...
var myText = document.getElementById('TextBox1').value;
document.getElementById('myTextArea').value = myText;;
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.