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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:58:19+00:00 2026-06-17T15:58:19+00:00

I have the following code written $(xml).find(‘list’).each(function() { $(#content_groups ul).append(<li><a href=’#membergroup’ onclick=’functionare(\ + $(this).attr(name)

  • 0

I have the following code written

$(xml).find('list').each(function() {
  $("#content_groups ul").append("<li><a href='#membergroup' onclick='functionare(\"" + $(this).attr("name") + "\")'>" + $(this).attr('name') + "</a><input type='checkbox' name='checkbox-0' id='checkbox-mini-0' class='custom' data-mini='true' /></li>");
});
$("#content_groups ul").listview('refresh');

The result is not as I wished, namely the checkbox has no jquery css style at all. Can you please tell me what’s the problem?

That’s how the result looks:

I’m basically new to all what’s jquery/javascript and I need it for my project only to display some results from an xml.

  • 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-17T15:58:20+00:00Added an answer on June 17, 2026 at 3:58 pm

    First few things to consider.

    $("#content_groups ul").listview('refresh');
    

    will only style your list view and nothing more.

    To style a check box you need to use a appropriate function like this one:

    $("#checkbox-mini-0").checkboxradio('refresh');
    

    Unfortunately this is not going to help you because jQuery Mobile can not style normal check box elements. If you use a standard check box your final result will be a normal check box.

    jQuery Mobile check box looks like this:

    <div data-role="fieldcontain">
        <fieldset data-role="controlgroup">
                <legend>Agree to the terms:</legend>
                <input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" />
                <label for="checkbox-1">I agree</label>
        </fieldset>
    </div>
    

    You can use this code and insert it into your listview li element (of course you still need to style it with .checkboxradio(‘refresh’);) but this still is not going to help you because jQuery Mobile check box is never meant to bu used inside listview.

    But you can create a custom check box inside a listview and here’s my example how you can do that: https://stackoverflow.com/a/13634738/1848600

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

Sidebar

Related Questions

I have written the following code in my Rails app to generate XML. I
I have written the following piece of code that reads through a given xml-file
Hello I have written the following code. My objective was to write a function
I have following code written to run NSTimer . But the NSTimer selector is
I'm using some not optimal code written by me... :-| I have following code:
I have written following code to attach gesture recogniser to multiple imageviews. [imageview1 setUserInteractionEnabled:YES];
I am trying my hands on WPF MVVM. I have written following code in
In physics library written in C# I have the following code: (in ContactManager.cs) public
i have written the following code class Program { static void Main(string[] args) {
I have written the following code, CrystalDecisions.CrystalReports.Engine.ReportDocument report = new CrystalDecisions.CrystalReports.Engine.ReportDocument(); report.Load(@C:\Users\XXX\Desktop\Backup1\Project\ReportsFolder\ReportSalesInvoice.rpt); Report works

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.