Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8020569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:43:41+00:00 2026-06-04T21:43:41+00:00

I have a button in the jquery mobile form, which defines the post action

  • 0

I have a button in the jquery mobile form, which defines the post action attributes.

<form id="form1" enctype="multipart/form-data" data-ajax="false" method="POST" target="uploadTarget" action="https://graph.facebook.com/me/photos?access_token="...">

<input id="source" name="source" type="file">
<input id="message" name="message" type="text">

<button id="upload" type="submit" name="upload">Upload Photo</button>
</form>

The post method on the form is not called when I click on the styled button.

The method ‘post’ is called on the form if I use data-role=”none”

<button data-role="none" id="upload" type="submit" name="upload">Upload Photo</button>

But the button obviously loses the mobile styles.

I have data-ajax=”false” at the form level as shown (thanks to CBroe!) , but that does not help.

Is there any option to get the jquery mobile styles on buttons, but leave the default Form events and submit/post behavior.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:43:43+00:00Added an answer on June 4, 2026 at 9:43 pm

    I have already tried to data-ajax=”false”, but that does not help.

    Where did you put that – on the button element, or on the form element? (It’s supposed to be set on the form.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form, like this <form id=picuploadform enctype=multipart/form-data method=post action=> <div class=row> <label
I am trying to submit a form via JQuery Mobile. I have: <form action=#pagetwo
I have a page in JQuery mobile, which contains a form. The form has
I have crated a form and trying to insert data using jquery ajax. But
I have a jQuery Mobile webpage which currently has a width=device-width but my form
I have a Jquery Mobile shell page, which I'm loading a form into using
I'm using jquery mobile and have a form with a submit button. Unfortunately, after
I have a Jquery Mobile page. In my header I have a button to
I have a login page using jQuery Mobile which contains the following code: <div
I have a form on my jquery-mobile/modernizr site. I'm using 1.1.0-rc.1 of jquery-mobile. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.