2

using jquery mobile i would like to disable the ajax call for input type Button.

i know how to disable ajax call with normal link using following method data-ajax="false", but it will not work for me when i tried for form submit button. i just want disable ajax call for my form submit button.

this is my content:

<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<input type="text" name="firstname" value="" placeholder="* Firstname" />
<input type="text" name="lastname" value="" placeholder="Last Name" />
 <input type="submit" value="<?php echo $button_continue; ?>" data-corners="false" data-theme="a" data-ajax="false" />
</form>

thanks for any help

mans
  • 1,087
  • 4
  • 26
  • 44

1 Answers1

4

Just add an attribute data-ajax="false" to your form tag, like this:

<form id="check-user" class="ui-body ui-body-a ui-corner-all" data-ajax="false">

</form>

And here's an example in my other answer.

Also read more about it in an official documentation.

Community
  • 1
  • 1
Gajotres
  • 57,309
  • 16
  • 102
  • 130