Bug Tracker

Modify

Ticket #3572 (closed enhancement: fixed)

Opened 5 years ago

Last modified 3 years ago

Add array support to addClass/removeClass

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

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

comment:1 Changed 5 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 3 years ago by rwaldron

  • Keywords needsreview added
  • Priority changed from minor to low
  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone 1.3 deleted

This has been implemented

comment:3 Changed 3 years ago by rwaldron

  • Keywords needsreview removed

To clarify, take a look at this demo:

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.