Matching multiple ids
Matching multiple ids
Just wondered if there is a better way of the writing the below:
-
$("#item02, #item03, #item04, #item05").hide();
In future I may have lots of divs that I need to hide on the load of the page and don't want to keep adding it to the list every time.
Thanks