javascript - Issues with serialize -


my problem when submit form click event. click event triggered in click event use $('#form_id').serialize(); fetch form details.

just before serialize function called update form fields using javascript/jquery.

after call serialize , call ajax post.

but when check post values in console. noticed form fields updated before call of serialize event not reflected in serialize variables.

therefore question how can refresh serialize variable latest values on form.

update - have added bind event on events. if use set timeout event , call serialize functions. changes updated in form returned correctly in serialize event.

is there way can make bind event return value not have call set time out event. ,


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -