After radio registers the click event, the magic is that when you use the up, down, left, and right keys on the keyboard to select, the mouse event will actually be triggered, and the scroll wheel will also be triggered. This magical thing will not happen under mousedown. (Webkit cannot use up, down, left, and right selections)
After the checkbox registered the click event, the miracle happened again. When we selected the checkbox with a space, the magical click event was triggered again, and the mousedown missed the miracle again. Pass. (Webkit still cannot use spaces to select)
Let us all use click to reduce the burden on these two guys. Don't bind a bunch of events to them because of their inherent shortcomings. For these two guys, click is the best powerful. Worship~~~
When designing a questionnaire using a form, in order to reduce user operations, it is a good idea to use a select box. There are two select boxes in the tag of HTML, namely single The difference between a marquee and a checkbox is that users can only select one option in a radio button, while users can select multiple options in a checkbox, or even all of them. Please look at the following example:
The source code of this example is given below. Combined with the code, the settings of each parameter are discussed: