|
|
|
|
|
by iKevinShah
1665 days ago
|
|
> How often do you need to select unique elements by ID? Don't use IDs in the first place. wait a minute, does everyone NOT use IDs for unique elements on page (not each element)? I mean I am genuinely interested in knowing why not to use IDs. There are unique elements which need to be selected on a page like #logout or something. |
|
There are some scenarios in which this is the case you may not expect right away, sometimes you need to duplicate elements for responsivity, for example.