jQuery: Can't get tooltip plugin to work

Posted by Rosarch on Stack Overflow See other posts from Stack Overflow or by Rosarch
Published on 2010-05-13T23:02:27Z Indexed on 2010/05/13 23:44 UTC
Read the original article Hit count: 310

I'm trying to use this tooltip plugin: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/. I can't seem to get it to work.

<head>
    <script type="text/javascript" src="/static/JQuery.js"></script>
    <script type="text/javascript" src="/static/jquery-ui-1.8.1.custom.min.js"></script>
    <script type="text/javascript" src="/static/jquery.json-2.2.min.js"></script>
    <script type="text/javascript" src="/static/jquery.form.js"></script>
    <script type="text/javascript" src="/static/js-lib/jquery.bgiframe.js"></script>
    <script type="text/javascript" src="/static/js-lib/jquery.delegate.js"></script>
    <script type="text/javascript" src="/static/js-lib/jquery.dimensions.js"></script>
    <script type="text/javascript" src="/static/jquery.tooltip.js"></script>
    <script type="text/javascript" src="/static/sprintf.js"></script>
    <script type="text/javascript" src="/static/clientside.js"></script>
</head>

I try it out in a simple example:

clientside.js:

$(document).ready(function () {

    $("#set1 *").tooltip();
});

The target html:

   <div id="set1">
                <p id="welcome">Welcome. What is your email?</p>
                <form id="form-username-form" action="api/user_of_email" method="get">
                    <p>
                    <label for="form-username">Email:</label>
                    <input type="text" name="email" id="form-username" />
                    <input type="submit" value="Submit" id="form-submit" />
                    </p>
                </form>
                <p id="msg-user-accepted"></p>
            </div>

Unfortunately, nothing happens. What am I doing wrong?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-tooltip