Issue with .serialize() in IE8 (IE7 Compatibility mode)

Issue with .serialize() in IE8 (IE7 Compatibility mode)

I am using IE8 and when I serialize all the checkboxes in my form (  $("#myform input:checkbox").serialize() ), I get the correct results.

When I perform the same function in IE8 Compatibility mode (IE7), the last checkbox is truncated.

IE8 Result
0=on&1=on&2=on&3=on&4=on&5=on&6=on&7=on&8=on&9=on&10=on&11=on&12=on&13=on&14=on
&15=on&16=on&17=on&18=on&19=on&20=on&21=on&22=on&23=on

IE8 Compatiblity Mode (IE7) Result
0=on&1=on&2=on&3=on&4=on&5=on&6=on&7=on&8=on&9=on&10=on&11=on&12=on&13=on&14=on
&15=on&16=on&17=on&18=on&19=on&20=on&21=on&22=on

How do I go about correcting this?

Thank you