jQuery Mobile: How to correctly submit form data

后端 未结 4 878
迷失自我
迷失自我 2020-11-27 05:53

This is a jQuery Mobile question, but it also relates to pure jQuery.

How can I post form data without page transition to the page set into form action attribute. I

4条回答
  •  心在旅途
    2020-11-27 06:41

    Problem is that JQuery Mobile uses ajax to submit the form. The simple solution to this is to disable the ajax and submit form as a normal form.

    Simple solution: form action="" method="post" data-ajax="false"

提交回复
热议问题