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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:17:50+00:00 2026-05-31T09:17:50+00:00

I am trying to figure out why it is that this line of code

  • 0

I am trying to figure out why it is that this line of code won’t perform inside of the sent messages tab. It works fine inside the inbox but not sent. As well I’m also trying to figure out why the body checkboxes aren’t being centering when I have the text align center style applied inline for them.

http://jsfiddle.net/Ytx9D/3/

$('#selectall').toggle(
    function() {
        $('.table .messages').prop('checked', true);
    },
    function() {
        $('.table .messages').prop('checked', false);
    }
);

UPDATE: http://jsfiddle.net/Ytx9D/4/

  • 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-31T09:17:51+00:00Added an answer on May 31, 2026 at 9:17 am

    You have more than one DOM node with id="selectall" so jQuery is only binding the event to the first one.

    You can prove this by clicking the select all button in the “Inbox messages” and then switching to “Sent messages” and you’ll see they’re all checked.

    The solution is to namespace these and change them to classes.

    <input type="checkbox" name="messages" class="selectall hidden" />
    

    Then your jQuery would look like this:

    $('.selectall').toggle(
        function() {
            $(this).closest('.table').find('.messages').prop('checked', true);
        },
        function() {
            $(this).closest('.table').find('.messages').prop('checked', false);
        }
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this line of code and am trying to figure out the pros
So we have this problem that we are trying to figure out. Heres what
I'm trying to figure out why this code doesn't work in C# and how
Trying to figure out how to write a jquery formula that will sum all
I'm trying to figure out where java Applets that I run from the browser
I am trying to figure out how to show that my service is running
I'm trying to figure out how to test-drive software that launches external processes that
I'm trying to figure out if there's anything in QT that is equivalent to
I'm trying to figure out how to generate a simple join that uses an
I am trying to figure out how I can define an autocmd that influences

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.