• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

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
0
Clare13
Asked:
Clare13
2 Solutions
 
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now