I all. I posted yesterday a question regarding dates not sent with jquery-ajax and found a solution with the .serialize() function.
Unfortunately the serialize() function decodes the date inputs and the result I get is this:
arrival= 13%2F04%2F2011 &departure= 28%2F04%2F2011 &ap_ID=2
I know how use decodeURIComponent() for single fields post like this:
var arrivalVal = $('#arrival').val();
arrivalVal = decodeURIComponent(arrival);
but how do I use it for the long string made by the .serialize() function?
Sorry if this seems a pretty obvious question but can't get my way around it.