<!DOCTYPE html> <p>Click the button to toggle between hiding and showing elements with class="city".</p> <button onclick="w3.toggleShow('.city')">Toggle Hide/Show</button> <div id="London" class="city"> <div id="Paris" class="city"> <div id="Tokyo" class="city"> </body> |
Click the button to toggle between hiding and showing elements with class="city". LondonLondon is the capital city of England. ParisParis is the capital of France. TokyoTokyo is the capital of Japan. |