Skip to main content

Bug Tracker

Side navigation

#13948 closed feature (duplicate)

Opened May 27, 2013 12:13PM UTC

Closed May 27, 2013 04:06PM UTC

Multiple arguments support in hasClass

Reported by: hasanokan@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

Sometimes, we need to check multiple class with hasClass,

if ( $el.hassClass("class1") && $el.hasClass("class2") && ...) {
  //Yes It does
}

It would be great if supports multiple classNames like

{{{

if ( $el.hasClass("class1, class2, class3") ) {

//Yes It does

}

Attachments (0)
Change History (1)

Changed May 27, 2013 04:06PM UTC by m_gol comment:1

resolution: → duplicate
status: newclosed

Duplicate of #13949.