Bug Tracker

Modify

Ticket #9189 (closed feature: duplicate)

Opened 2 years ago

Last modified 2 years ago

Add helper functions .checked() and .disabled()

Reported by: Ariel <asjquery@…> Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.6
Keywords: Cc:
Blocking: Blocked by:

Description (last modified by rwaldron) (diff)

Per what Dave Methvin wrote in I am posting this as a reminder.

Add helper functions .checked() and .disabled() which manipulate or return their properties (just like val()).

I suspect that those two are the most frequently used attributes/properties, and adding those helpers would probably negate the majority of the confusion regarding properties.

Also there may be a speed increase since they can directly go to the dom .checked or .disabled for the element.

Change History

comment:1 Changed 2 years ago by timmywil

  • Type changed from enhancement to feature
  • Component changed from unfiled to attributes

comment:2 Changed 2 years ago by rwaldron

  • Description modified (diff)

Is this almost a duplicate of #7441 ?

comment:3 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Status changed from new to closed
  • Resolution set to duplicate

Close enough I think. We only need one ticket for these methods.

comment:4 Changed 2 years ago by timmywil

Duplicate of #7441.

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.