Click the text behind the radio button to select the radio button

Keywords: radio radio button text selected

      Sometimes when we fill out some forms on a web page, we may encounter radio buttons. For example, if you are asked to choose whether your gender is male or female, users will often click on the small circle of the radio button. The buttons are relatively small and may not be clickable, so it is best to click the text behind the radio button to directly select the radio button.

 

<input type="radio" id="male" name="sex" checked="checked" /><label for="male"></label>  

<input type="radio" id="female" name="sex" /><label for="female"></label> 

Guess you like

Origin blog.csdn.net/linwei_hello/article/details/17586525