+ var checks = jQuery("<input type='checkbox' name='test' value='1'/>").appendTo("#form")
+ .add( jQuery("<input type='checkbox' name='test' value='2'/>").appendTo("#form") )
+ .add( jQuery("<input type='checkbox' name='test' value=''/>").appendTo("#form") );
+
+ same( checks.serialize(), "", "Get unchecked values." );
+
+ checks.val([ "2" ]);
+ same( checks.serialize(), "test=2", "Get a single checked value." );
+
+ checks.val([ "1", "" ]);
+ same( checks.serialize(), "test=1&test=", "Get multiple checked values." );
+
+ checks.val([ "", "2" ]);
+ same( checks.serialize(), "test=2&test=", "Get multiple checked values." );
+
+ checks.remove();