Home > Not Working > $this.addclass Not Working In Ie

$this.addclass Not Working In Ie


Thank you for your assistance in the investigation of this issue.Best regards,The Internet Explorer Team Sign in to post a workaround. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Wrong way on a bike lane? Today's Topics Dream.In.Code > Web Development > JavaScript > jQuery jQuery addClass not working Page 1 of 1 New Topic/Question Reply 3 Replies - 23258 Views - Last Post: 06 May http://camtronics.net/not-working/this-addclass-not-working.html

Millikan in his oil drop experiment? how does xcolor's \color work? However, they work fine in other browsers. See also: http://api.jquery.com/category/css/[^], http://api.jquery.com/addClass/[^], http://api.jquery.com/removeClass/[^]. —SA Permalink Posted 31-Jul-13 6:55am Sergey Alexandrovich Kryukov1.1M v2 Add a Solution Add your solution here B I U S small BIG code Plain http://stackoverflow.com/questions/7109329/jquery-addclass-not-working-in-ie-8-9-and-probably-the-other-one-too

Addclass Not Working In Ie11

more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation I'm not sure it's doing exactly what you intend, but it is doing what the code says to do. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem.

Submit Posted by Microsoft on 4/23/2014 at 10:53 AM Hello,At this time we will go ahead and close out this feedback as no repro since you cannot reproduce the behavior in Let's work to help developers, not make them feel stupid. share|improve this answer answered Sep 2 '11 at 6:22 jfriend00 291k28297378 I need to add a class to the parent li as well as the child a so that Remove Class Javascript share|improve this answer answered Sep 2 '11 at 6:59 mahulst 1439 Why select an a and then it's a children? –Joachim Sauer Sep 2 '11 at 7:18

up vote 1 down vote favorite jQuery functions addClass and removeClass do not work properly when I use them to change the appearance of a div tag in Internet Exploer (IE). Jquery Removeclass Not Working In Ie Which oil was used by Robert A. How do you simplify a log with an exponent in the base? check here Here is sample code to illustrate my problem: if ($('#tdh').hasClass('current')){ $("#u50").addClass('u59c'); $("#u59").addClass('u59b'); $("#u61").removeClass('u59b'); } CSS: .u59b { background-color: #3B5998; color: #FFFFFF; font-family: Segoe UI Light; font-style: normal; font-weight: bold; padding-right: 13%;

Adding the line breaks turned out to be the best solution in my real-world case.I guess I wasn't really looking for a solution (there are several workarounds) as much as confirmation Solution 1 Accept Solution Reject Solution This is just the pure logic looks entangled. IE 11 ignores first addClass when input is inside label - by Kristian Ask Status : Closed as Not Reproducible Not Reproducible The product team could not reproduce this item Send Update CancelFeedbackEmail IDSubject : Comments : Send CancelPrivate MessageType the characters you see in the picture below.

Jquery Removeclass Not Working In Ie

Your Email Password Forgot your password? https://www.sitepoint.com/community/t/jquery-issue-with-addclass-and-removeclass-in-ie-9/35628 If you care to explain what you're trying to accomplish, we can likely help you fix the code to do what you want. Addclass Not Working In Ie11 Join them; it only takes a minute: Sign up $(this).addClass() not working up vote 0 down vote favorite I can do $(this).children("a").addClass("class") and it works fine, but when I do $(this).addClass("class") Jquery Addclass Not Working Hot Network Questions What is the most someone can lose the popular vote by but still win the electoral college?

Array unification Should I have doubts if the organizers of a workshop ask me to sign a behavior agreement upfront? item = $(this).closest("div"); In this line, item is set to a jQuery object. your code for the load event ... }); –user1976613 Jun 12 '13 at 8:30 | show 5 more comments 3 Answers 3 active oldest votes up vote 1 down vote Try I am using $(this) within a mouseover function. $("#site nav li.hasChild").mouseover(function () { $(this).children("a").addClass("selectedTab"); // works fine $(this).addClass("selectedFixTab"); // does not work $(this).children("ul").css("display", "block"); }); HTML: