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

  • SEARCH
  • Home
  • 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 6347259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:10:46+00:00 2026-05-24T21:10:46+00:00

I am using the latest version of jquery mobile and my problem is that

  • 0

I am using the latest version of jquery mobile and my problem is that I have given a submit button an ID and then added some css to set the ID to display:none;

For some reason this does not work.

Has anyone had this problem before?

  • 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-05-24T21:10:46+00:00Added an answer on May 24, 2026 at 9:10 pm

    It’s hard to tell what you’re trying to do without any code but I think the problem stems from the fact that jQuery Mobile doesn’t style your existing button but rather, hides the element and wraps it in a new div which is styled to look and behave like a button.

    The current jQuery Mobile markup for a button looks like this:

    <div data-theme="e" class="ui-btn ui-btn-inline ui-btn-corner-all ui-shadow ui-btn-hover-e ui-btn-down-e" aria-disabled="false">
        <span class="ui-btn-inner ui-btn-corner-all">
            <span class="ui-btn-text">Submit</span>
        </span>
        <input type="submit" id="submit_btn" value="Submit" data-theme="e" data-inline="true" class="ui-btn-hidden" aria-disabled="false">
    </div>
    

    So you look for the closest ancestor with the class ui-btn and hide it:

    $('#submit_btn').closest('.ui-btn').hide();
    

    If there’s a better way to do this, I’d love to know about it. Here’s a fiddle that shows my solution in action.

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

Sidebar

Related Questions

I am using autoNumeric plugin with the latest version of jQuery . I have
I am using latest version of jQuery Autocompletion plugin and have populated an array
I'm having quite a peculiar problem with PhoneGap and JQuery Mobile, using the latest
Why is this selector not working? I'm using the latest version of JQuery Mobile
Using the latest version of Resharper (4.5.x) with VS2008. Every now and then (pretty
I'm using XAMPP (latest version) on OS 10.6.2, that's bundled with PHP 5.3.0 I
I am using the latest version of protobuf-net with VS2008 integration. I have created
I'm new to SVN. I'm using the latest version (svn 1.6.9, TortoiseSVN 1.6.7.18415). Some
I'm using the latest version (v1.6.2) of nyromodal lightbox : jQuery.nyroModalSettings({title:'Manual Title'}); It won't
I am making cross-domain Ajax calls using the latest version of jQuery 1.7.1. with

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.