0

I use the following jQuery function for tooltip on input text, textarea and dropdown:

$(function() {
$("#addmovie-form :input:not(:button):not(:submit):not(:reset)").tooltip({
        position: "center right",
        offset: [-2, 10],
        effect: "fade",
        opacity: 0.7

    });
});

I add then a tooltip to a text, textare or dropdown with code:

$('#add-titel').prop("title", "my title ...");

This is working fine on text, textarea and dropdown inputs.

Now I have also multiple checkboxes inside the form and If I assign a tooltip to the checkbox id's, the tooltip is not displayed. Also the checkboxes are jumping around on mouseover like this:

example before

example after mousehover

Does someone have a solution for this?

I also thought, it would be better to put a html table around the whole checkboxes and display the tooltip on table hover. I found some TD or TR jquerys for this, but i can't get it to work on the complete table.

3
  • try to add tool-tip on checkboxes label or try to wrap checkbox in span and add tooltip on it Commented Jul 16, 2016 at 15:25
  • can you make jsfiddle? Commented Jul 16, 2016 at 15:31
  • Thanks for the answer. i didn't even know you can do it with span.Thank you, now it is working. I got the code from here: w3schools.com/css/css_tooltip.asp Commented Jul 16, 2016 at 16:34

1 Answer 1

1

try to add tool-tip on checkboxes label or try to wrap checkbox in span and add tooltip on it

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.