By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,624 Members | 2,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,624 IT Pros & Developers. It's quick & easy.

HTML Code Help. Input Fields

P: 4
Hi Guys,

New to all this. Need your help.

I am working on a form. I have some input text fields, however I want to pass the value of one of these text fields to a hidden field.

So lets say I have a field in the form called OLDFIELD. I want to pass the value from OLDFIELD to NEWFIELD.

so my code may look like

<input type = "hidden" name = "NEWFIELD" Value = ???????

Value is to be the OLDFILED.

Could someone help guide me on this.

Kind regards


John
Feb 21 '07 #1
Share this Question
Share on Google+
3 Replies


ronverdonk
Expert 2.5K+
P: 4,258
You'll have to use JavaScript to do this trick for you. Because you do not only have to fill the new field, but also have to remove the old field from the form dunamically.

Ronald :cool:
Feb 22 '07 #2

P: 4
Hi Many thnaks for this.

Do you have some Java Code that I can use?

I do not need to clear out the old field name as I want the data in both fields.

John
Feb 22 '07 #3

Expert 100+
P: 1,892
Hi Many thnaks for this.

Do you have some Java Code that I can use?

I do not need to clear out the old field name as I want the data in both fields.

John
Are you trying to pass values between forms? I'm not really clear what your wanting to do and whether Javascript will be sufficient also this is the HTML/CSS forum we may want to move this to a more appropriate forum.

Aric
Feb 22 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.