Trying to do very simple thing.
Have too many of these fields:
<input name="itempriceqty0" /><input name="itemprice0" /><br />
<input name="itempriceqty1" /><input name="itemprice1" /><br />
<input name="itempriceqty2" /><input name="itemprice2" /><br />
etc...
Goal is to get their values in one PHP string of this format: itempriceqty0=itemprice0, itempriceqty1=itemprice1,itempriceqty2=itemprice3,etc...
Serializing with jquery gives a url formatted string, which I need to split many times with PHP to get rid of input names and other &= chars.
$.post('test.php', {
itemprice: $('#itempricefieldswrapper :input').serialize() }, ...
);
What is the easiest way to handle it with jquery?
P.S. Googled everywhere. Need help. Thanks.