Modify ↓
Ticket #9657 (closed feature: wontfix)
Extend .hasClass to similar .hasClasses
| Reported by: | waynepurtonsmith@… | Owned by: | waynepurtonsmith@… |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | attributes | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I was thinking if it would be good to check an element if it has classes, but it'll still should be able to check if the element has one class at a time, e.g.
$('#element').hasClass('classone classtwo classthree');
Change History
comment:1 Changed 2 years ago by rwaldron
- Owner set to waynepurtonsmith@…
- Status changed from new to pending
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

This does fit for consistency with add|remove. What would be expected if...