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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:20:35+00:00 2026-06-14T14:20:35+00:00

Please check this code: http://jsfiddle.net/Hce8y/ I’m trying to generate a list of grouped check

  • 0

Please check this code: http://jsfiddle.net/Hce8y/

I’m trying to generate a list of grouped check boxes:

function ItemCode_Changed(sender, onload) {
$('#category-contianer-id-3').append(
        '<div data-role="fieldcontain">'
             + '<fieldset data-role="controlgroup">'
                + '<legend>Choose as many:</legend>'
                + '<input type="checkbox" name="checkbox-1a" id="checkbox-1a" class="custom" />'
                + '<label for="checkbox-1a">Cheetos</label>'
                + '<input type="checkbox" name="checkbox-2a" id="checkbox-2a" class="custom" />'
                + '<label for="checkbox-2a">Doritos</label>'                    
                + '<input type="checkbox" name="checkbox-3a" id="checkbox-3a" class="custom" />'
                + '<label for="checkbox-3a">Fritos</label>'
                + '<input type="checkbox" name="checkbox-4a" id="checkbox-4a" class="custom" />'
                + '<label for="checkbox-4a">Sun Chips</label>'
            + '</fieldset>'
        + '</div>');

$('#category-contianer-id-3 [data-role="fieldcontain"]').fieldcontain();
    $('#category-contianer-id-3 [data-role="fieldcontain"]').fieldcontain('refresh');

    $("#category-contianer-id-3 input[type='checkbox']").checkboxradio();
$("#category-contianer-id-3 input[type='checkbox']").checkboxradio('refresh');
//$('#my-home').page();

}

when change the text in the input, but the result doesn’t looks like the demo.

Is there any mistakes, any help are appreciated.

  • 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-14T14:20:36+00:00Added an answer on June 14, 2026 at 2:20 pm

    You have to call both methods:

    $('input[type=checkbox]').checkboxradio();
    $('fieldset').controlgroup();
    

    Calling fieldcontain() after changing its child-elements doesn’t change anything. At least I was not able to see any differences.

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

Sidebar

Related Questions

Please check this code: http://jsfiddle.net/rkumarnirmal/Rq7b2/2/ What I'm doing is I'm showing some text. If
http://jsfiddle.net/9aaNh/ Please check this Fiddle. I am having problem with spacing in between text
I have this code, please observe this fiddle: http://jsfiddle.net/VjhJ4/19/ When you hover over the
Please check out my code here http://jsfiddle.net/bYDPr/20/ So I have some HTML textarea elements
I have the code that you can check in this fiddle: http://jsfiddle.net/4SCrp/5/ <form id=my_form>
amm please kindly check this code? cos it won't work.. <?php $page = file_get_contents(http://natadec0c0.tumblr.com/);
I'm trying to upload image to Amazon S3 with this Ruby code: require 'net/http/post/multipart'
iam trying to achieve this exact functionalty: http://jsfiddle.net/exttq/ BUT inside using my PHP, right
Consider the following code ( http://jsfiddle.net/FW36F/1/ ): <input type=checkbox onchange=alert(this.checked)> <button onclick=document.getElementsByTagName('input')[0].checked=!document.getElementsByTagName('input')[0].checked;>toggle</button> If you
This is my code please check. At the End i want to remove list-style-image:

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.