how to fill textbox with hidden value attribute

Hello, .. please can somebody help, ..
Trying to  fill a hidden value in the input text box using following code, ..

<input class="text style2" id="captcha" name="user[csol]" size="30" type="text" />

<input id="user_captcha_secret" name="user[csecret]" type="hidden" value="somevalue"/>

Open in new window


thanks in advance, this is really frying my brain lol

Clare
Clare13Asked:
Who is Participating?
 
COBOLdinosaurCommented:
In your event handler se the value like this:
 
document.getElementById('user_captcha_secret').value='somevalue';



Cd&
0
 
Meir RivkinFull stack Software EngineerCommented:
jquery:
$("#ser_captcha_secret").val("somevalue");

Open in new window

0
 
DhaestCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.