JQuery Tooltip Hover on Radio Button

Charlie Yabben picture Charlie Yabben · Oct 5, 2012 · Viewed 13.4k times · Source

I want to have a tooltip show on hover over a radio button. So I'm trying to use this plugin: tipsy. So here's my html:

<label><input type="radio" name="options" value="1" class="required" id="option1"> Option1</label>

And then I tried something like this:

$("#option1").tipsy({fallback: "test" });

But when i hovered over the radio button, nothing appeared. Why isn't anything appearing and how do I make it work?

Answer

Ricardo Alvaro Lohmann picture Ricardo Alvaro Lohmann · Oct 5, 2012

Add title to your input.

<input type="radio" name="options" value="1" class="required" id="option1" title="MyText">