Why cant i get thiz to work?
It works when i use the ById, but not ClassName or TagName <!DOCTYPE html> <html> <head> <title>Page Title</title> <style type="text/css"> body { text-align: center; } p { border: 2px solid; border-radius: 25px; } </style> </head> <body> <h2 id="questOne">This is the Question. hope you're ready!!</h2> <p class="yu" id="ansa" onclick="funcA()">Some possible answer here!</p> <p class="yu" id="ansb" onclick="funcB()">Some possible answer here!</p> <p class="yu" id="ansc"onclick="funcC()">Some possible answer here!</p> <p class="yu" id="ansd"onclick="funcD()">Some possible answer here!</p> <script type="text/javascript"> window.onload = function() { var samp = document.getElementsByClassName("yu"); samp.innerHTML = "Why you not working???"; } </script> </body>