#13367 closed bug (notabug)
removeClass() does not remove all class in v1.9.0
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | attributes | Version: | 1.9.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$("#a1").removeClass() does not remove all class from
<a id="a1" href="#qno1" class="ans mark unmark">1</a>
individual class are removed using $("#a1").removeClass("ans")...
but jquery v1.8.3 is removed all classes.
The elements are loaded through ajax.
Change History (7)
comment:1 Changed 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
I assume you're using jQuery UI. See http://bugs.jqueryui.com/ticket/9015.
I'll leave this open until we get confirmation.
comment:3 Changed 10 years ago by
Yes, i am using jQuery UI. It is only happen only using jQuery UI.
You are recommandate using .removeAttr('class') rather than .removeClass().
So what about .removeClass()???
comment:4 Changed 10 years ago by
Component: | unfiled → attributes |
---|---|
Resolution: | → notabug |
Status: | pending → closed |
jQuery UI http://bugs.jqueryui.com/ticket/9015
Note: See
TracTickets for help on using
tickets.
Works for me: http://jsfiddle.net/jzE3m/
We'll only be able to assess this ticket further if you provide a reduced test case of your own.