View Full Version : Submit only what shown

12-21-2010, 07:42 PM

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...

Old Pedant
12-21-2010, 08:19 PM
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.

12-21-2010, 08:35 PM

Please Help :) my brain is about to explode...

When you put your brain back together, post some code. :D

You show me yours and I'll show you mine! :eek: