<!DOCTYPE html> .class2 { <p>Click the button to add the class names "class1" and "class2" to id="London".</p> <button onclick="w3.addClass('#London','class1 class2')">Add Classes</button> <div id="London" class="city"> <div id="Paris" class="city"> <div id="Tokyo" class="city"> </body> |
Click the button to add the class names "class1" and "class2" to id="London". LondonLondon is the capital city of England. ParisParis is the capital of France. TokyoTokyo is the capital of Japan. |