mans
mans

Reputation: 1087

jquery mobile remove ajax call from input button

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

Upvotes: 2

Views: 2255

Answers (1)

Gajotres
Gajotres

Reputation: 57309

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.

Upvotes: 4

Related Questions