Vote count:
0
This is a best practices question.
I have a check mark icon that I want to show only if an item has been selected.
My standard practice is to include the icon in the HTML and hide by default with CSS. Then I use jQuery to show/hide the icon based on the conditions.
Is this the best way? Or is it better to not include the icon in the HTML to start, and instead use jQuery to append or remove the icon as needed?
By "better" I suppose I mean performance and usability.
Thanks for your input!
asked 56 secs ago
What's better? To hide with css or to add with jquery?
Aucun commentaire:
Enregistrer un commentaire