Update: Ok, I need to be shot. I left out a little bit of form code to cut down on the length of the post. Here's the full code:
<form name="userupdate" id="userupdate" method="post">
<input type='hidden' name='username' id='username' value='andyd273' />
<input type='hidden' name='setusertype' id='setusertype' value='1' />
<table align="left" border="1" cellspacing="0" cellpadding="3" class="bodytext">
<tr><td>andyd273</td></tr>
<tr><td>
<input type='checkbox' name='DealerType[]' id='GM' value='1' /> GM<br>
<input type='checkbox' name='DealerType[]' id='Chrysler' value='2' /> Chrysler<br>
<input type='checkbox' name='DealerType[]' id='Ford' value='3' /> Ford<br>
</td></tr>
</table><br>
<input type='button' value='Save' onclick='javascript: formSubmit();' />
</form>
I figured I'd try something out, and removed the table stuff, just leaving the plain form inputs, and the checkboxes started working just like they do in Chrome.
So, new question: Why won't serialize work in IE when the inputs are inside of a table? Thanks to everyone that tried to help solve the first incomplete question!
Old question left for completeness:
I am trying to get a form to serialize. It works in Chrome and Firefox, but not in Internet explorer.
Example:
<input type='hidden' name='username' id='username' value='andyd273'>
<input type='hidden' name='setusertype' id='setusertype' value='1'>
<input type='checkbox' name='DealerType[]' id='GM' value='1' /> GM<br>
<input type='checkbox' name='DealerType[]' id='Chrysler' value='2' /> Chrysler<br>
<input type='checkbox' name='DealerType[]' id='Ford' value='3' /> Ford<br>
In Chrome I get:
Array
(
[username] => andyd273
[setusertype] => 1
[DealerType] => Array
(
[0] => 1
[1] => 3
)
)
But in IE I only get:
Array
(
[username] => andyd273
[setusertype] => 1
)
So I'm not sure what needs to be done with it to make it work in IE.
/Old question