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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:05:49+00:00 2026-06-17T06:05:49+00:00

HTML <div id=test> <input type=checkbox id=check1 class=checkall/><label for=check1>1</label> <input type=checkbox id=check2 class=checkall/><label for=check2>2</label> <input

  • 0

HTML

<div id="test">    
    <input type="checkbox" id="check1" class="checkall"/><label for="check1">1</label>
    <input type="checkbox" id="check2" class="checkall"/><label for="check2">2</label>
    <input type="checkbox" id="check3" class="checkall"/><label for="check3">3</label>
</div>
<br>
<input type="button" id="selectall" value="Select All">

jQuery

$("#test").buttonset();
$("#selectall").button();
    $("#selectall").toggle(
          function () { $("#test .checkall").prop("checked", true).buttonset("refresh"); },
          function () { $("#test .checkall").prop("checked", false).buttonset("refresh"); }
      );

I want to select all button is clicked. But it does not change visually. I’d appreciate if you help.

Demo: http://jsfiddle.net/fenerama/zv8e4/

  • 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-17T06:05:50+00:00Added an answer on June 17, 2026 at 6:05 am

    If you meant you wanted to change the visual of the Select all button as well, then it might be better to make that a check box as well.
    In any case, the answer by sdepont is correct in the sense you need to use button in there and not buttonset.

    Check this : http://jsfiddle.net/x3QY3/1/

    HTML :

    <div id="test">    
        <input type="checkbox" id="check1" class="checkall"/><label for="check1">1</label>
        <input type="checkbox" id="check2" class="checkall"/><label for="check2">2</label>
        <input type="checkbox" id="check3" class="checkall"/><label for="check3">3</label>
    </div>
    <br>
      <input type="checkbox" id="selectall" value="Select All" /><label for="selectall">Select All</label>
    

    JQuery:

      $("#test").buttonset();
      $("#selectall").button();
    
    $("#selectall").toggle(
          function () { $("#test .checkall").prop("checked", true).button("refresh"); $("#selectall").prop("checked", true).button("refresh");},
          function () { $("#test .checkall").prop("checked", false).button("refresh"); $("#selectall").prop("checked", false).button("refresh");}
      );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HTML is <div class=jfmfs-friend-container> <div class=jfmfs-friend > <input class=friend-checkbox type=checkbox> <img src=/picture> <div class=friend-name>Test
html <div class=btn-group data-toggle=buttons-checkbox> <label class=btn for=id_bar> <input type=checkbox name=bar value=1 id=id_bar /> Bar
html code: <div> <input type=checkbox onclick=selectAll(this); />select all<br/> <input type=checkbox /><br/> <input type=checkbox /><br/>
My html: <div id=dvUser> <table id=tblUser > <tbody> <tr> <td> <input class=sfCheckBox type=checkbox title=view
Suppose I have the following html: This a test of <code>some code</code>. <div class='highlight'>
The code is as below: <html> <head> <title>test</title> </head> <body> <div><span>shanghai</span><span class=margin> </span><span>male</span></div> </body>
buildIMG = (src, resize) -> html = '<div class=left><div class=foods_image>' html += '<a onclick=popitup(http://somewhere.com/test
I want to add row with remove button through javascript in html div formate.
<html> <div id=pnl_prompt style=display:none; background-color:#808080> <b id=lbl_prompt_title>Prompt</b> <br /> <span id=lbl_prompt_name class=right>Field:</span> <input id=txt_prompt_field
I have this javascript/ jquery to list available users. HTML: <input name=username type=text size=16

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.