Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Forms Fieldsets and Labels

Veljko Mirkovic
Veljko Mirkovic
3,818 Points

How would you uncheck radio inputs using only HTML?

Let's say I have a quiz and as I go down the list of questions I filled in some questions I wasn't sure of and I'd like to get back to them later, so the best option would be to leave them blank until I finish the whole test.

Would it be possible to add a line of code to the quiz using only HTML (no css, no js) that would uncheck the radio input.

1 Answer

Jonah Stuart
Jonah Stuart
9,199 Points

First, it's impossible to uncheck radio buttons with just HTML. I'd recommend reading this answer on stack exchange, provides some good insight on the intentions and design of radio buttons.

With that said the UX for leaving a question blank seems a little strange. It's a passive action that doesn't have clear results. If returning to unanswered questions later is a high/likely/expected use case, try experimenting with the environment around the question. Add a checkbox near/next to the question labeled "Answer Later" or if it's sequenced questions, have the next button read "Answer Later" and queue the questions at the end of the test as they work their way through it.

Veljko Mirkovic
Veljko Mirkovic
3,818 Points

Thank you very much for your quick reply. That's something I haven't really thought of and it's an amazing workaround.

As far as the situation seeming a little strange, I've experienced it a few times. for example in IQ tests and timed tests where some of the questions were complicated enough for me to spend almost all the required time to answer the certain question or fill in an answer I know for sure is incorrect so I can proceed to the next one and when reviewing the test I can't find that question I need to correct.

Thanks again for the reply