Nested Expand Elements but instead of [expand]
-
hello,
I am listing bars and restaurants by state and then by city. the page I am using can’t take shortcodes so I have to use collapse-o-magic with the <div>
I have it working with one level of collapse/expand:
https://www.wahakamezcal.com/where-to-buy-bars-restaurants/
But I can’t figure out how to make it work with the second level. How would I tell it that this new <div> is a “sub” of the first one:
echo "<div id=\"".str_replace(' ', '', strtolower($by_city['city']))."\" class=\"collapseomatic\"><h4 id=\"city\">".$by_city['city']."</h4><br></div>";
echo "<div id=\"target-".str_replace(' ', '', strtolower($by_city['city']))."\" class=\"collapseomatic_content\"> "; echo "the bar's name and address<br>"; echo "</div>";
thanks, raza
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Nested Expand Elements but instead of [expand]’ is closed to new replies.