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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:15:44+00:00 2026-05-22T02:15:44+00:00

When i check\uncheck checkboxes and radiobuttons, browser doesnt set attribute checked. So, when i

  • 0

When i check\uncheck checkboxes and radiobuttons, browser doesnt set attribute checked. So, when i am trying uncheck checkbox using jquery:

$('#tab2 input').removeAttr('checked');

it doesnt work. It works case checkbox was checked from my javascript code. How can i uncheck checkbox which already checked by user?

  • 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-22T02:15:45+00:00Added an answer on May 22, 2026 at 2:15 am

    You’re setting a property, so use .prop() in jQuery 1.6.

    $('#tab2 input').prop('checked',false);
    

    Or if there’s only one input, just change the property of the element directly.

    $('#tab2 input')[0].checked = false;
    

    When jQuery 1.6.1 is released, Or upgrade to jQuery 1.6.1 and you’ll be able to go back to using .attr() to set properties again, but .prop() will still be the better way to do it.

    From the release notes:

    Specifically, boolean attributes such as checked, selected, readonly, and disabled in 1.6.1 will be treated just as they used to be treated in jQuery versions prior to 1.6. This means that code such as

    $(“:checkbox”).attr(“checked”, true);
    $(“option”).attr(“selected”, true);
    $(“input”).attr(“readonly”, true);
    $(“input”).attr(“disabled”, true);
    

    or even:

    if ( $(“:checkbox”).attr(“checked”) ) { /* Do something */ }
    

    will not need to be changed in 1.6.1 in order to work as previously expected.

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

Sidebar

Related Questions

I'm trying to create a check/uncheck all CheckBox for a number of CheckBoxes that
how to check and uncheck the checkbox in repeater control using javascript? here i
Is it possible to check or uncheck a set of checkboxes on a page
Is there a way to uncheck/check a checkbox within a webpage that is loaded
I'm trying to check/unckeck a selectbox by jquery in a previous TD. I have
hi i try to check/uncheck all checkboxes that don't got a class to them.
I am writing a Autohotkey script that need to 'check' and 'uncheck' checkboxes defined
I have multiple checkboxes. I want to check and uncheck some of them or
I'm trying to create a web form that contains checkboxes, among other input elements,
I've seen many check/uncheck all checkboxes scripts. But far most does not respect that

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.