<!DOCTYPE html> <p>Click the button to hide the first p element inside div.</p> <button onclick="w3.hide('div p:first-child')">Hide</button> <div> </body> |
Click the button to hide the first p element inside div. First paragraph. Second paragraph. |