Bug Tracker

Opened 11 years ago

Closed 9 years ago

Last modified 9 years ago

#3572 closed enhancement (fixed)

Add array support to addClass/removeClass

Reported by: jakajancar Owned by:
Priority: low Milestone:
Component: core Version: 1.2.6
Keywords: Cc: jakajancar, flesler
Blocked by: Blocking:

Description

addClass/removeClass support passing in multiple classes using spaces to separate them.

What about supporting Arrays too, so joining and splitting isn't necessary?

Change History (3)

comment:1 Changed 11 years ago by flesler

Cc: jakajancar flesler added

Could be. Can you post to the jquery-dev group and ask for some feedback ? Please link to this ticket.

comment:2 Changed 9 years ago by Rick Waldron

Keywords: needsreview added
Milestone: 1.3
Priority: minorlow
Resolution: fixed
Status: newclosed

This has been implemented

comment:3 Changed 9 years ago by Rick Waldron

Keywords: needsreview removed

To clarify, take a look at this demo:

http://jsfiddle.net/rwaldron/hC4kq/

Note: See TracTickets for help on using tickets.