I have a page which has a drop list inside a form. The drop list contains ‘Categories’ of ads.
Depending on the value chosen in the drop list, I use javascript to show/hide DIVS on the page, which all contain different form inputs for the user to fill in.
All this still inside the form!
Now, when the user has filled in all form inputs inside the ‘SHOWN DIV’, and clicks ‘SUBMIT’, the other form inputs remain ‘unfilled’.
My Q is, does these ‘unfilled’ inputs slow down things?
Is it needed to make them (the form inputs) disabled instead of only not visible inside a hidden DIV?
BTW, the page is php based and the forms action is set to a php file.
Thanks
The bandwidth required to send all of the additional form markup to the user whether or not they are visible is really the only point your application would be slowing down any. When the user submits the form only the field data for the current form is sent, so all of the other unused fields are simply disregarded.
Unless your page contains a considerable amount of extra markup to include the additional form fields, you probably need not worry about including them in the rendered HTML.