KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm writing a quiz application using php / jquery. The answer selections are contained like so: <ul id="answers"> <li> <div> <input type='radio' name='answer_id' value='313'> True </div> </li> <li> <div> <input type='radio' name='answer_id' value='314'> False </div> </li> </ul> After being styled w/ css, these answers appear in a container with one answer per line. Each answer has its own box inside the container. I want the user to be able to click anywhere inside the individual answer div and have the radio select become checked. How can I activate the radio button check when a user clicks in the radio button's container div, using jquery?
Tags (comma-separated)
Save Edits
Cancel