ajax - decoding with jquery .serialize() -


i all. posted yesterday question regarding dates not sent jquery-ajax , found solution .serialize() function.

unfortunately serialize() function decodes date inputs , result this:

arrival= 13%2f04%2f2011 &departure= 28%2f04%2f2011 &ap_id=2 

i know how use decodeuricomponent() single fields post this:

 var arrivalval = $('#arrival').val();    arrivalval = decodeuricomponent(arrival); 

but how use long string made .serialize() function?

sorry if seems pretty obvious question can't way around it.

try that

var editserialize = $('form#edit').serialize(); editserialize = decodeuricomponent(editserialize.replace(/%2f/g, " ")) 

...


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -