Prevent values โโfrom being wrapped in a form
I have 4 <select></select>
items in my form. Usually when you submit the form, you will get this in the url like
index.html?day=01&month=01&year=1999&reporter=Joe+Blogs
However, in my interface, users switch between a date picker and a picker. Is it possible to only send values โโin an active item?
[I started writing this to send you guys, but then I thought about it and checked the disabled attribute of form elements - so in the spirit of a stack over stream I entered my own answer too]
source to share
yes - after i did that i figured out the problem i created for non js users. I made a "todo" to split it into two shapes. I thought I was smart to turn different sets of fields on and off (trying to use the correct markup), but then, yes, filled this in. Well, in general, I learned about disabled and how to manipulate it in jQuery ...
source to share