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 7834555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:14:32+00:00 2026-06-02T13:14:32+00:00

I have the following code set up for a list of checkboxes in jQuery

  • 0

I have the following code set up for a list of checkboxes in jQuery mobile 1.0.1 which is producing strange behavior on android devices.

    <fieldset data-role="controlgroup">
       <div id="container">
          <div id="List1">
             <input type="checkbox" name="1" id="Team-1-Player-1"  data-theme="a"/>
             <label for="1" data-theme="a">
                <span class="ui-grid-b grid">
                   <span class="ui-block-a col1">1</span>
                   <span class="ui-block-b col2">Name <span class="pos">Position</span></span>
                   <span class="ui-block-c col3">Avg</span>
                </span>   
             </label>
             <input type="checkbox" name="2" id="Team-1-Player-2"  data-theme="a"/>
             <label for="2" data-theme="a">
                <span class="ui-grid-b grid">
                   <span class="ui-block-a col1">2</span>
                   <span class="ui-block-b col2">Name <span class="pos">Position</span></span>
                   <span class="ui-block-c col3">Avg</span>
                </span>   
             </label>
          </div>
       </div>
    </fieldset>

There may be multiple “List” divs depending on the page, but the behavior is the same. If the user presses anywhere within the label tags, everything works fine, but if they press on the checkbox icon generated by jquery mobile, it will appear checked and then immediately uncheck itself. This ONLY happens on android devices.

EDIT:

I eventually solved this by removing the checkbox icon jquery mobile adds via css and putting my own icons into the background image of the label for the checkbox. I handled toggling between checked and unchecked in the change event of the checkbox. Thanks for all the suggestions.

  • 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-02T13:14:34+00:00Added an answer on June 2, 2026 at 1:14 pm

    See my edit for what I did. Here is the code.

    In CSS to remove JQMs checkbox icons:

    #container label .ui-icon
    {
        display:none!important;
    }
    

    Then the classes for my custom made check and unchecked icons:

    .checkon{background-image:url("images/check.png"); background-repeat:no-repeat;}
    .checkoff{background-image:url("images/uncheck.png"); background-repeat:no-repeat;}
    

    Then I edited my label tags to include these classes:

    <label class="checkoff" for="1" data-theme="a">
    

    And bound the toggling on/off to the inputs change event:

    $("#container input").live("change", function (event) {
                $(this).next().toggleClass("checkoff");
                $(this).next().toggleClass("checkon");
            });
    

    This is an ugly workaround, I know, but I could not figure out the source problem and it works for now at least.

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

Sidebar

Related Questions

I have the following code which produces a dictionary containing multiple lists; each list
I have the following code set up in my Startup IDictionary<string, string> properties =
I have the following code to set a userId variable: (userId set in prior
I have following code in my application: // to set tip - photo in
I have the following code: UPDATE myTable SET Col1 = @Value However, I have
I have used the following code to set cookie and then redirect. String level=(String)
I have the following code: private static final Set<String> allowedParameters; static { Set<String> tmpSet
I have the following code that seems like it should set my insertParameter but
I have the following code: DECLARE @testDate date --SET @testDate=dateadd(wk, 5830, 0) SET @testDate='2011-09-26
I have following tsql code in sql server 2008: declare @ID INT SET @ID

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.