|
|
|
|
|
by Ryan_IRL
5404 days ago
|
|
> If HTML5 data-* attributes change during program execution, use jQuery's .attr() method to get the current values. I'm not sure why anyone would want to use an attribute for storage, but this is good info. I for one love data-* attributes. It's better than the days of trying to pack info into the id or rel attributes. |
|
Is there some reason not to do that besides 'it would fail a validator test'?