i want to show hide multiple divs with jquery or javascript. I seached the web but i find codes that must have unique divs like:
<div id="div1">text</div>
<div id="div2">text</div>
and so on, but i want to add the divs in a foreache php function so i can't have multiple IDs, the foreache is a div wrapper. So, my question is how can i do that ?