Solved

how to fill textbox with hidden value attribute

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

813 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

15 Experts available now in Live!

Get 1:1 Help Now