Sections
queryselector
3 threads tagged with this topic
Threads tagged queryselector
- ✓
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:
4replies - ✓
How do I convert old jQuery code to plain JavaScript?
Convert it one habit at a time, not all at once. Replace $() with document.querySelector or querySelectorAll, .on() with addEventListener, .addClass() with...
1reply - ✓
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...
1reply