Skip to content
CoursesWeb Forum
SectionsJavaScript and the DOM

JavaScript and the DOM

Selecting elements, changing content and attributes, building elements on the fly and handling clicks and input with plain JavaScript in the browser.

Threads in JavaScript and the DOM

  1. ?

    How do I get the value of the selected radio button in JavaScript

    I am building a tiny quiz page for my coding club. Each question has three radio buttons and a Check button. I tried this:

    JavaScript and the DOMOdalys F.
    0replies
  2. ✓

    querySelector or querySelectorAll: which one should I use?

    Use querySelector when you need one element: it returns the first match, or null if there is none. Use querySelectorAll when you need every match: it returns a...

    JavaScript and the DOMTeodora VanceStaff answer
    1reply
CoursesWeb Forum. Questions and answers on learning web development: HTML, CSS, JavaScript, PHP, MySQL, Node.js and AI coding help.