Use `prop` over `attr`
Use `prop` over `attr`

“The difference between attributes and properties can be important in
specific situations. Before jQuery 1.6, the .attr() method sometimes
took property values into account when retrieving some attributes,
which could cause inconsistent behavior. As of jQuery 1.6, the .prop()
method provides a way to explicitly retrieve property values, while
.attr() retrieves attributes.”

alphagov/static,robinwhittleton/static,robinwhittleton/static,kalleth/static,tadast/static,alphagov/static,tadast/static,robinwhittleton/static,kalleth/static,tadast/static,robinwhittleton/static,kalleth/static,kalleth/static,tadast/static,alphagov/static