The code from this answer works, but there is dead zone between the input radio and its label where clicking does not work. Even the cursor looks different. Basically they work as if they are two different things, not a single unit like a WinForms' RadioButton.
<input type="radio" name="group1" id="r1" value="1" title="click me" />
<label for="r1" title="click me"> button one</label>
Also, I want to show a tooltip (title), but it seems that I have to put the same tooltip to both the radio input and the label, and the tooltip disappears on that dead zone.
What is the best way to make the two look like a single unit?
- Clicking anywhere starting from the circle to the end of label should work.
- A single tooltip needs to be shown anywhere starting from the circle to the end of label.