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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:24:24+00:00 2026-05-12T11:24:24+00:00

According to SitePoint (and my own experiments), the IE implementation of setAttribute() is buggy

  • 0

According to SitePoint (and my own experiments), the IE implementation of “setAttribute()” is buggy and unreliable.

Also according to SitePoint, the name attribute is read-only.

Is there another way I can set the name attributes on elements? I need this for use with radio buttons. If possible, I’d like a solution without jQuery, as I’m currently not using the library.

Thanks in advance!

  • 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-12T11:24:24+00:00Added an answer on May 12, 2026 at 11:24 am

    Sitepoint liesis talking about a different usage of ‘name’ (see Anthony’s comment). It’s not read-only, it’s just there’s a long-standing IE bug (up to v7) where setting ‘name’ on form fields is only partially effective. Radio buttons in particular don’t accept it properly.

    The Microsoft-endorsed solution, as detailed here is to use a horrific misfeature of IE’s version of the createElement call to set attributes at the same time:

    var radio= document.createElement('<input type="radio" name="test" value="a" />');
    

    Probably a better way would simply be to use good old innerHTML, eg.:

    var div= document.createElement('div');
    div.innerHTML= '<input type="radio" name="test" value="a" />';
    var radio= div.firstChild;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to the documentation, they're pretty much interchangeable. Is there a stylistic reason to
According to select name from system_privilege_map System has been granted: SELECT ANY TABLE ...and
According to be Spring Framework documentation, logging is the only mandatory dependency of Spring.
According to Microsoft ( link ), there are two ways to start a task:
According Mac App Store rules 2.30: Program may write only to allowed locations. My
According to C++03 Standard (23.1/3) only copy-constructible class objects can be stored in STL
According to http://caniuse.com/script-defer , most browsers support the script tag's defer attribute. I would
According to MSDN ( http://msdn.microsoft.com/en-us/library/system.windows.forms.label.autosize.aspx ), there's a note about Label 's AutoSize property:
According to the documentation, there is no convenient 'same' option for the xcorr command
According to this discussion , the iphone agreement says that it doesn't allow loading

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.