OZONE Asylum
Forums
DHTML/Javascript
dynamically write hidden input from select box selected index
This page's ID:
29208
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi all, I have a select box with data that looks like this: [code] <select name="retailers_stateabbr" size="1" class="formStyle" > <option value="">Select a state</option> <option id="Alabama" value="AL">AL</option> <option id="Alaska" value="AK">AK</option> <option id="Arizona" value="AR">AR</option> <option id="Arizona" value="AZ">AZ</option> <option id="California" value="CA">CA</option> </select> [/code] I currently am writing the selected value to a table in my db however I would like to write the selected value's ID to another column on the same table in my db. I'm thinking that it would require creation of a function that uses getElementByID to document.write a hidden input. Does anyone have a function that works this way that I could reference to write my own function correctly? Couldn't I use PHP to echo the ID using the getElementById() function to a hidden input? If so, any recommendations on how to do it? Thanks, Boudga [small](Edited by [url=http://www.ozoneasylum.com/user/17]Boudga[/url] on 05-12-2007 15:07)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »