![]() The JavaScript getElementsByTagName() is a dom method to allows you to select an element by its tag name. When you click the Rate button, the page will show an alert dialog that displays the your selected radio button value. Let rates = document.getElementsByName('rate') Let btn = document.getElementById('btnRate') The following syntax represents the getElementById() method: The JavaScript getElementById() is a dom method to allows you to select an element by its id.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |