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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:25:01+00:00 2026-06-01T23:25:01+00:00

What I would like to do is the following. I have an image which

  • 0

What I would like to do is the following. I have an image which shows a tooltip on hover. When a field does not pass the validation, I would like to show the default error message aswell as the images’ title in a new paragraph. The tooltip image should then be hidden. When the field then passes validation, the default error message should be hidden again (default behaviour), my paragraph should be hidden and the tooltip image should be shown again.

So, when a field does not pass validation:
– Default validations error message
– Tooltip images’ title

And when a field does pass validation:
– Tooltip image

I got the ‘failed validation’ part figured out but when the field passes validation, the tooltip images’ title is still shown and the tooltip image is hidden. So what I basically need is a callback to a function when some field passes validation.

This is what I’ve got so far:

$(document).ready(function(){

$('form#saveform').validate({

    ignore: ":hidden",
    errorPlacement: function (error, element) {

        var error_td = element.parent('td').next('td');
        var tooltip_img = error_td.find('img.tooltip');

        error_td.append(error);
        error_td.append('<p class="notice">' + tooltip_img.attr('oldtitle') + '</p>');

        tooltip_img.hide();

    }

});

});

Can anyone help me making this work?

  • 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-01T23:25:02+00:00Added an answer on June 1, 2026 at 11:25 pm

    I don’t think that the validate plugin would have a callback when the validation is successful. Although it has callbacks to apply and remove error highlighting to/from elements.
    So what you could do is:

    $('form#saveform').validate({
      highlight: function(element, errorClass, validClass) {
        // add error, hide image
      },
      unhighlight: function(element, errorClass, validClass) {
         // remove error, show image
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following collection which i would like to bind to a combobox:
I have a route like following, ideally I would like it to match: domain.com/layout/1-slug-is-the-name-of-the-page
I have following line code in my view: <td> Model.some_instance_method(args) </td> I would like
I would like to have the following kind of HTML: <header></header> <div id='main'></div> <footer></footer>
I would like to have the following syntax: python utility.py file1 FILE1 file2 FILE2
I would like to implement the following behaviour: I have a special media player,
i have the following problem: i would like to create a footer. that footer
Say I have the following: [Test] // would like to parameterize the parameters in
I have the following 2 arrays and would like to combine them. I'm more
I have the following issue and I would like to know what exactly happens.

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.