views:

33

answers:

1

My jquery looks like this:

var as = $("input[name=as[]]").serialize();
var bs = $("input[name=bs[]]").serialize();
var cs = $("input[name=cs[]]").serialize();

but it's not serializing the first set at index 0.

+1  A: 

For a simple workaround, you might consider giving the blank fields a token or placeholder value prior to serializing, which you can test for on the server, for example:

$('form > :input:empty').val('Token String To Indicate Emptiness');
alert($('form').serialize());
karim79