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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:56:38+00:00 2026-05-26T04:56:38+00:00

Moving from jQuery 1.4.4 to jquery 1.6.4 started breaking my code related to radiobuttonlist.

  • 0

Moving from jQuery 1.4.4 to jquery 1.6.4 started breaking my code related to radiobuttonlist.

Here is a sample code and steps to replicate weird behavior:

Steps to reproduce:

1: Radio A is already selected.

2: Select radio B

3: Enter something in textbox and tab out.

You will see: A is checked and B is checked alerts.

So what exactly changed from 1.6.4 to 1.4.4 that is causing it to break?

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
        <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.6.4.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function txtchanged(tb) {
            $(".rbl").find("input[type='radio']").each(function () {
                alert($(this).val() + " " + $(this).attr("checked"));
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:RadioButtonList ID="RadioButtonList1" runat="server" CssClass="rbl">
        <asp:ListItem Text="A" Value="A" Selected="True" />
         <asp:ListItem Text="B" Value="B" />
    </asp:RadioButtonList>
    <asp:TextBox ID="tb" runat="server" CssClass="tb" onblur="txtchanged(this)"></asp:TextBox>
    </form>
</body>
</html>
  • 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-26T04:56:39+00:00Added an answer on May 26, 2026 at 4:56 am

    Quote OP:

    So what exactly changed from 1.6.4 to 1.4.4 that is causing it to
    break?

    Radio button checked is not an attribute, it’s a property. jQuery was updated in version 1.6 to correct this semantic error.

    Change this…

    .attr("checked")
    

    to this…

    .prop("checked")
    

    EDITS:

    As to the OP’s comment about why jQuery is not backward compatible:

    1) It would add an accumulation of bloat to the code.

    2) To be “backward compatible” would be virtually the same as not fixing this problem at all.

    See this page to read the release notes on every version of jQuery.

    Also change this…

    .removeAttr('checked')
    

    to this…

    .removeProp('checked')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've strange error i don't understand. I'm just moving my code from jQuery over
We are moving from WebForms to MVC and and using a lot of jQuery.
i am moving from jquery to prototype because of compatibility issue with IE6. basically,
I am moving from the PHP AJAX library xajax to jQuery AJAX. With xajax,
We're moving from the bassistance.de autocomplete to jQuery UI autocomplete. I can't find as
I am moving from jQuery to MooTools (for the fun..) and I have this
i have slowly been moving from microssoft ajax to jquery for all my ajax
I am doing animation in jquery. I have a looping picture moving from left
Moved from a Web Application to a Web Site, began moving code over... and
Im moving from django to pylons, is there an admin app?

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.