Bug Tracker

Modify

Ticket #7649 (closed enhancement: duplicate)

Opened 2 years ago

Last modified 2 years ago

Enhance removeAttr()

Reported by: Motty Owned by:
Priority: low Milestone: 1.6
Component: attributes Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

I would like the removeAttr() function remove multiple attributes. Maybe copy the removeClass() method and separate the attributes by spaces:

$(selector).removeAttr('disabled style')

Change History

comment:1 follow-up: ↓ 2 Changed 2 years ago by snover

  • Keywords needsreview added

comment:2 in reply to: ↑ 1 Changed 2 years ago by Motty

Replying to snover:

Sorry, didn't realize this is a duplicate of #5479 - almost word for word o.O

comment:3 Changed 2 years ago by jitter

  • Keywords needsreview removed
  • Priority changed from undecided to low
  • Status changed from new to closed
  • Component changed from unfiled to attributes
  • Resolution set to duplicate

comment:4 Changed 2 years ago by jitter

Duplicate of #5479.

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.