Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8851019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:02:31+00:00 2026-06-14T13:02:31+00:00

I am using the jqueryTOOLS plugin for jquery to generate tooltips for a set

  • 0

I am using the jqueryTOOLS plugin for jquery to generate tooltips for a set of form fields on my site.

The event trigger is dictated by a small piece of javascript:

$(function() {
$("#myform :input[title],label[title]").tooltip({
position: "top center",
offset: [-10, 0],
effect: "fade",
opacity: 1.0
      });
    });

As you can see, this triggers the title attribute of s and s as a tooltip onFocus.

You can also see that the configuartion of the tooltip takes place as part of this javascript, position is set, as well as an offset etc.

My problem:

There is no one position the tooltip can occupy relative to the fields in the form which is suitable. Some elements I need it to appear on the left, some to the right, and some above. I am looking for a way, based on the class of the element, to dictate an alternative position for the element.

I have tried:

Setting the class of a element for which I need the tip to appear to the left like so:

<input  
        title="This text becomes the tooltip" 
        class="errorleft" 
        type="radio" 
        name="somename" 
        value="value" 
        id="elementID"  
                /> 

and then adjusting my javascript to include an additional trigger:

$(function() {
$("#myform :input[title],label[title]").tooltip({
position: "top center",
offset: [-10, 0],
effect: "fade",
opacity: 1.0
      });
    });

    $(function() {
$("#myform.errorleft :input[title],label[title]").tooltip({
position: "center left",
offset: [0, 0],
effect: "fade",
opacity: 1.0
      });
    });

This does not work (and I can see why) and I know there is a way to do this, but I can’t see a way to it, so far non of the documentation I can find on the jqt website has discussed this.

Any ideas much appreciated

jsFiddle
Here is a jsfiddle of my situation using a demo form, and the code I have attempted – in this example the Email field has the class “errorleft” where as all the others are classless. All tooltips display on the right
http://jsfiddle.net/DjHr7/1/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:02:33+00:00Added an answer on June 14, 2026 at 1:02 pm

    You are missing a space in your selector. As currently written,

    $("#myform.errorleft :input[title],label[title]")
    

    means, find the element that has an id #myform AND a class .errorleft. It should work with the following syntax:

    $("#myform .errorleft")
    

    This means, find an element with class .errorleft inside an element with an id of #myform

    (You don’t have to worry about adding :input[title],label[title] if you give each input field a class

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Flowplayer's jQuery Tools framework (specifically the tooltips plugin) in a table,
I am using jQuery Tools Validator to ensure that my form fields are not
I'm trying to use the JQuery tools tooltips plugin in a site that I'm
I am using the jQuery Tools Scrollable plugin - http://flowplayer.org/tools/scrollable.html#navigator I have created a
I'm using jQuery Tool's tabs an accordion as per here: http://www.jquerytools.org/demos/tabs/accordion.htm The whole thing
I am working on a small app and am using jQuery Tools Tooltip (
I'm working on a jQuery plugin to build up tabbed pages of charts using
I'm using jQuery and some very-common-jquery-plugins in CMS extensions (including jQueryUI and jQueryTools along
I'm using jQuery Tools Plugin as image slider ( image here ), but due
I would like to create a gallery slideshow using Jquery Tools Scrollable plugin. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.