www.webdeveloper.com
Results 1 to 2 of 2

Thread: IE removeAttribute issue.

  1. #1
    Join Date
    Aug 2011
    Posts
    4

    IE removeAttribute issue.

    Hi everyone. Quick question:

    I have some code that's designed to change some CSS elements on a page when certain scenarios apply. It works on every browser except for IE7.

    From searching around, I've tracked it down to the following line - but I'm not certain what exactly I need to do to fix it.
    document.getElementsByClassName("class1")[0].removeAttribute("class");
    I'm a javascript neophyte so the more basic you can be, the better.

    Thanks in advance!

  2. #2
    Join Date
    Oct 2010
    Location
    Versailles, France
    Posts
    1,264
    The method getElementsByClassName is not cross browsers (See this thread)...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles