What browser is this happening on? And what version of the form plugin? It works fine for me on FF2 and IE7 using the latest form plugin (.97). This is what I tried:
<html><head> <script type="text/javascript" src="jquery-1.1.2.js"></script> <script type="text/javascript" src="jquery.form.js"></script> <script type="text/javascript"> $(function() { $('button').click(function() { alert( $('#DB .HSCO').fieldSerialize() ); return false; }); }); </script> </head> <body><div><form id="DB" action=""> <input type='checkbox' class='HSCO' id='HSCO_1' name='HSCO_1' value="1" /> <input type='checkbox' class='HSCO' id='HSCO_2' name='HSCO_2' value="0" /> <input type='checkbox' class='HSCO' id='HSCO_3' name='HSCO_3' value="1" /> <button>Test</button> </form></div></body> </html> Mike On 5/25/07, oscar esp <[EMAIL PROTECTED]> wrote:
I am using fieldSerialize: jQuery('#DB .HSCO').fieldSerialize(); In form DB I have 3 items: <input type='checkbox' class='HSCO' id='HSCO_1' name='HSCO_1' value=1 ></td> <input type='checkbox' class='HSCO' id='HSCO_2' name='HSCO_2' value=1 ></td> <input type='checkbox' class='HSCO' id='HSCO_3' name='HSCO_3' value=1 ></td> if value is =1 then works fine.... however when value =0 (ex:HSCO_3) the item doesn't appear in the serialization: "HSCO_1=1&HSCO_2=1" Any workaround?