Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: Submit only what shown
12-21-2010, 06:42 PM #1
- Join Date
- Dec 2010
- Thanked 0 Times in 0 Posts
Submit only what shown
I have a page with 8 different <input type="select"> fields.
All the time only one out from this 8 is shown. the rest of them are hidden with css: display:none;
How can I submit with POST only the select that's showing, and not the rest?
All of them have differnt names. Like dropdown1, dropdown2, and so on...
I dont know how can I get the value out from the one that's shown, and not the rest.
Please Help my brain is about to explode...
12-21-2010, 07:19 PM #2
At the same time you hide a given <select> *also* set it to disabled.
Disabled fields are not submitted to the next page.
If you need more help, show some code.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
12-21-2010, 07:35 PM #3