Javascript question . . .

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi all,

I'm storing the client ID of an element in a hidden field on the client. How
can I use this hidden field to get the object and then change it's value?

Regards
John.
 
Hi john,
You can find a control on the form in javascript by using getElementById.
Sample code
var ctl = document.getElementById('controlId') ;
ctl.value = "something";
HTH
srini
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top