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

  • SEARCH
  • Home
  • 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 8140911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:19:25+00:00 2026-06-06T12:19:25+00:00

I am new to both SO and web development in general. Sorry for my

  • 0

I am new to both SO and web development in general. Sorry for my general ignorance.

I have built a form which has validation ahead of form submission.
I have included jqueryTOOLS basic validator: http://www.jquerytools.org/demos/validator/index.html

It works fine, but I need to adjust the position of the error message, which I have discovered I can do with the following code:

$("#myform").validator({
position: 'center left',
offset: [-2, 80],
});

However, it is adjusting the position of the LEFT hand side of the div containing the error message. Because I would like the error to appear on the LEFT of each field, I am trying to anchor the RIGHT hand side of the error message, not the left.

So while I can move the error messages around using the position and offset, I want the point of the error message I am moving around to change.

This is important because the error messages are of different lengths, and so if I anchor the left side, then longer messages will cover the fields that require interaction.

I hope this was clear, I can explain more if not! 🙂

  • 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-06T12:19:28+00:00Added an answer on June 6, 2026 at 12:19 pm

    The problem is due to the jquery tools plugin setting the left css attribute vs. the right attribute. It’s absolutely positioned on the page so the calculation it does for ‘center left’ is incorrect.. it should be calculating distance from right side of page, not left. You can even see this failure on their demo page: just open up a console and run this:

    $("#myform").validator({position:'center left', offset:[0,0]})
    

    Click submit and you will see it doesn’t work

    You could force a certain width for the error width (e.g. 200) and then you could pass in offset:[0,200] and it will appear correctly.

    Otherwise you’ll probably have to manually fix the logic in the plugin source (and submit a bug to them!)

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

Sidebar

Related Questions

I'm new to PHP (and web development in general) and have come across something
I am new to both Qt and Linux C++ development (although I have many
I am new to mobile development, but have some experience with web app development.
I'm new to both Web development (started this January) and Web security (started less
I am very new to web development (about a month) and i have run
I'm completely new to rails and mostly new to web development in general. i'm
I am a C programmer and new to web development. Which web-C-technology (open source)
I'm very new to web development, have many years background on the desktop, but
Im new to both ruby and rails, but have experience with java, javascript and
I'm new on both this site and ruby on rails! I have a common

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.