Solved

how to fill textbox with hidden value attribute

Posted on 2012-03-14
4
284 Views
Last Modified: 2013-11-13
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
Comment
Question by:Clare13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 250 total points
ID: 37720932
In your event handler se the value like this:
 
document.getElementById('user_captcha_secret').value='somevalue';



Cd&
0
 
LVL 42

Assisted Solution

by:sedgwick
sedgwick earned 250 total points
ID: 37741374
jquery:
$("#ser_captcha_secret").val("somevalue");

Open in new window

0
 
LVL 53

Expert Comment

by:Dhaest
ID: 38818061
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Part One of the two-part Q&A series with MalwareTech.
Progress
Starting up a Project

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question