We help IT Professionals succeed at work.

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
Comment
Watch Question

Top Expert 2013
Commented:
In your event handler se the value like this:
 
document.getElementById('user_captcha_secret').value='somevalue';



Cd&
Meir RivkinFull stack Software Engineer
BRONZE EXPERT
Commented:
jquery:
$("#ser_captcha_secret").val("somevalue");

Open in new window

Dirk HaestProject manager
BRONZE EXPERT

Commented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.