Project

General

Profile

Actions

Bug #2036

closed

Do not use .attr() jquery method to get/set properties

Added by François ARMAND over 12 years ago. Updated about 12 years ago.

Status:
Released
Priority:
3
Assignee:
Arthur ANGLADE
Category:
Web - UI & UX
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Since jQuery 1.6, .attr() and .prop() methods have clear, different specifications.

We should use .prop() each time we want to change or read the current value of an attribute, not its initial value.

See: http://api.jquery.com/prop/

Actions

Also available in: Atom PDF