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 7656023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:39:48+00:00 2026-05-31T12:39:48+00:00

I am having a problem with the Ajax errorPlacement for my Validation Plugin (

  • 0

I am having a problem with the Ajax errorPlacement for my Validation Plugin (See this Fiddle). ErrorPlacement combined with position:absolute is forcing my ajax validation response to pop up in the wrong place.

If the user has not entered any information yet, the error messages pop up in the correct position (floated to the right side of the input field in red text). However, if the user has inputted information, then deletes it, the ajax alert (“this field is required”) pops up in the wrong place in the field below where it is supposed to. To view the problem, type in all fields correctly, then delete your name. The message “this field is required” pops up in the email field, but it belongs in the name field.

The js that controls the validation is:

$(document).ready(function() {
        errorPlacement: function(error, element) {
              error.insertAfter( element).position({
                  my:'right top',
                  at:'right top',
                  of:element          
              });
                  error.fadeOut(3000);
         }  
    }); 
});

The css that it is causing the problem is:

label.error { position:absolute;}

I need to include this css so that I can float the errors over the input fields. See the Fiddle to see the problem. Thank you!

  • 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-05-31T12:39:51+00:00Added an answer on May 31, 2026 at 12:39 pm

    Just revise your css as follows:

    form p {
        position: relative;   /* This ensures error label is positioned within the p tag */
    }
    label.error {  
        top: 0; /* This ensures that it lines up with the top of the input */
        right:90px; 
        color: red; 
        position:absolute;
    }
    

    Even tested in IE just to be sure…

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

Sidebar

Related Questions

I'm having problem with Rails plugin attachment_fu . On every upload, I get validation
I'm having a problem. I have this code: setInterval(function() { $.ajax({ url: url, success:
I'm having this problem on posting a page. The page have a jquery ajax
I am having a problem loading the Google AJAX APIs in response to user
I'm having problem in getting the response in a div of an ajax request
I'm having this problem with my AJAX, where it's not working in IE, but
I am having problem in getting reference of Ajax control extender using $find() or
I am having a problem in using Ajax methods.I have a master page and
I am having problems posting this multi checkbox data with ajax. <?php foreach($_SESSION['contacts'] as
I'm having problem selecting an element with an id like this <li =0f:Bactidol_Recorder.mp4>. I

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.