On my website, I have a series of questions with multiple choice answers. I am looking to enhance the user experience by hiding the radio buttons and allowing users to submit their answer simply by clicking on the text within a specific DIV. Can anyone provide guidance on how to achieve this using JavaScript, jQuery, or another method? Below is a snippet of the HTML code for a sample question/answers section:
<form action="" method="post" name="" >
<div> 8*2= ?</div>
<br clear="left">
<div><input type="radio" name="ans" value="a">Sixteen </div>
<div><input type="radio" name="ans" value="a">Twelven </div>
<div><input type="radio" name="ans" value="a">Thirteen </div>
<div><input type="radio" name="ans" value="a">Four </div>
<div><input name="submit" type="submit" value="SUBMIT" style="background-color:#006600; color:#FFFFFF;" /> </div>
</form>
If you have any insights or advice, please share. Thank you in advance!