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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:41:29+00:00 2026-06-02T01:41:29+00:00

Picture of problem: http://tinypic.com/view.php?pic=2duwlsp&s=5 Description of problem: I have a jQuery form validation which

  • 0

Picture of problem: http://tinypic.com/view.php?pic=2duwlsp&s=5

Description of problem: I have a jQuery form validation which is “working”, except for one visual bug. When you first cause a validation error, everything displays as it should. But if you fix the error, then re-cause the error, the image does not show up on the second time.

See screenshot above for pictures of the problem.

My code:

 <script type="text/javascript">
    $(document).ready(function(){
      $('#signupform').validate({
           wrapper: 'span class="error"',
           meta: 'validate', 
           highlight: function(element, errorClass, validClass) {
               if (element.type === 'radio') {
                      this.findByName(element.name).addClass(errorClass).removeClass(validClass);
              } else {
                      $(element).addClass(errorClass).removeClass(validClass);
               }

              // Show icon in parent element
              var error = $(element).parent().find('span.error');

              error.siblings('.icon').hide(0, function() {
                error.show();
              });
            },


             unhighlight: function(element, errorClass, validClass) {
              if (element.type === 'radio') {
                this.findByName(element.name).removeClass(errorClass).addClass(validClass);
              } else {
                $(element).removeClass(errorClass).addClass(validClass);
              }

              // Hide icon in parent element
              $(element).parent().find('span.error').hide(0, function() {
                $(element).parent().find('span.valid').fadeIn(200);
              });
            },
            "rules":{"username":{"required":true,"remote":{"url":"http:\/\/localhost\/welcome\/remote","type":"post"}}},"onkeyup":false});
             });
 </script>

What I’ve tried: I’ve tried looking at the highlight and unhighlight functions. My “guess” is the error is in the “unhighlight” section, because it only occurs after the 2nd error (i.e. highlight, unhighlight, highlight->error)

So perhaps I’m removing something I shouldnt?

  • 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-02T01:41:31+00:00Added an answer on June 2, 2026 at 1:41 am

    worked it out. Change

             // Show icon in parent element
              var error = $(element).parent().find('span.error');
    
              error.siblings('.icon').hide(0, function() {
                error.show();
              });
    

    to

             // Show icon in parent element
              var error = $(element).parent().find('span.error');
    
                error.show();
              },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a WYSIWYG webpage editor: http://brokenmyriad.com/editor2.php , however I have come across
I have a problem with following tutorial: http://www.mkyong.com/jsf2/jsf-2-internationalization-example/ In faces-context file you have to
I have a jQuery problem... for a website using lots of picture (organized per
First, a picture about my layout: http://d.pr/qTam+ I have 2 form in a Div.
I have problem with fb sdk for Android (downloaded from http://github.com/facebook/facebook-android-sdk ). Tried to
I have a problem with include pages in PHP. Picture shows what I want
I have a problem with layout. Look at the picture: as you can see
Picture the following situation. I have an XML document as follows, <Form> <Control Type=Text
hereis the link: http://eec.github.com/book/ The pictures jump to the second line after 2 picture
I have problem with z-index again. Please check page http://webakery.asia/projects/valentine/ On the right side

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.