Solved

how to fill textbox with hidden value attribute

Posted on 2012-03-14
4
250 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to page 4 70
Definitions and default visual studio colors 5 58
Plain Text Editor for iPad 6 56
would like the bottom of this page to be smaller 3 15
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

914 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now