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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:48:06+00:00 2026-05-31T10:48:06+00:00

Within an .each(function(), I’m trying to uncheck checkboxes. In line 1, I’m setting the

  • 0

Within an .each(function(), I’m trying to uncheck checkboxes.
In line 1, I’m setting the value on 2 different Id’s and this works fine.
What I want to do, is to unset both of the checkboxes on a single line. i.e take lines 3 & 4 and combine into 1 line. Line 2 is what I’ve tried, but it’s not working (it doesn’t do either of them).
(The ‘wsSeq’ is created by the server side, so that I get unique ID’s on multiple rows).

            $('#wsDocRef,#wsSupp').val('');
//          $("'#wsTransferToQuarantine" + wsSeq + ",#wsTransferToSupplier" + wsSeq + "'").attr('checked', false);
            $('#wsTransferToQuarantine' + wsSeq).attr('checked', false);
            $('#wsTransferToSupplier' + wsSeq).attr('checked', false);
  • 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-31T10:48:08+00:00Added an answer on May 31, 2026 at 10:48 am
    $("'#wsTransferToQuarantine" + wsSeq + ",#wsTransferToSupplier" + wsSeq + "'").attr('checked', false);
    

    That isn’t too far off, except for the unnecessary quotes. If wsSeq is 1, your selector looks like this:

    $("'#wsTransferToQuarantine1,#wsTransferToSupplier1'").attr('checked', false);
    

    Which is fine, except for the ' at each end. This should work fine:

    $("#wsTransferToQuarantine" + wsSeq + ",#wsTransferToSupplier" + wsSeq).attr('checked', false);
    

    With all that said, however, it may actually be quicker to do two ID selections than one multiple selection. This kind of optimisation is probably not necessary or a good use of your time.

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

Sidebar

Related Questions

I am trying get the html within .event_recur. $(.entry).each(function(){ alert($(this).find(.event_recur).html()); }); <div class=entry> <p
If I want to get the length of each match within the parentheses in
I have a function eventIterable() in six different classes, each with different names. These
How can I acces my object variables within a $.each function? function MyClass() {
I have a bit of code: $('.audio_player embed').each(function() { $(this).attr('wmode','transparent').wrap('<div></div>'); console.log($(this)); }); What this
I have this javascript, jquery function, (below) It gets the text inside each table
I have: $(document).ready(function(){ $(#eventsContent).children().each(function(){ $(this).bind(mouseenter, function(){ $(this).css(background,#F5F5F5); }); }); }); I have tried this
I'm trying to loop through each .required within two divs: #A and #B. $('#A
I have the following code: $(document.body).click(function() { $(.content).each(function(i) { $(this). }); }); How can
I'm trying to call a jQuery popup window function from within an iframe. In

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.