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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:05:01+00:00 2026-06-14T21:05:01+00:00

i cant get the issue in my code , every thing working proper but

  • 0

i cant get the issue in my code , every thing working proper but issue is that when user click or focus first time on textbox correct img show .. this is incorrect but i cant solved this problem when user typing then after completing wher user correct type then show otherwise not shown . can any one help me regarding this issue . my complete jquery and html or css code are available in this link pls check and solved my issue

my code link

i think error on this function but icant get the issue

$('#step1 #fName').focus(function(){

        if($('#step1 #fName').hasClass('error_Aplha')==true)
        {
            $('#step1 #fntick').removeClass('block');    
        }
        else {
            $('#step1 #fntick').addClass('block');
        }
    }).blur(function(){

        if($('#step1 #fName').hasClass('error_Aplha')==true)
        {
            $('#step1 .fname_error').fadeIn(100).delay(2000).fadeOut(1000);
            $('#step1 #fntick').removeClass('block');    
        }
        else {
            $('#step1 .fname_error').removeClass('block');    
            $('#step1 #fntick').addClass('block');
        }

    });

thanks in advance

  • 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-14T21:05:03+00:00Added an answer on June 14, 2026 at 9:05 pm

    Wow, that’s a lot of code for a simple task. Change it so the checks are only done in the .keyup() and .blur() events of the INPUT elements.

    Not 100% sure what the intended behaviour is, but this will probably get you going:

    $(document).ready(function(e) {
    
        var errorAlpha = function() {
            var reg = /^([A-Za-z]+)$/;
            var check = $(this).val();
            if (reg.test(check) == true && check.match(reg) != null) {
                // VALID
                $(this).removeClass('error_Aplha');
                $(this).next('img').addClass('block');
                $(this).prevAll('span.tooltip2').stop(true).delay(500).fadeOut(400);
            } else {
                // INVALID
                $(this).addClass('error_Aplha');
                $(this).next('img').removeClass('block');
                $(this).prevAll('span.tooltip2').fadeIn(500).delay(2000).fadeOut(1000);
            }
        };
    
        $('#step1 #fName, #step1 #lName').on('keyup blur', errorAlpha);
    
    });​
    

    Demo: http://jsfiddle.net/gU3PU/6/

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

Sidebar

Related Questions

Probably I cant get more dumb, but seriously this is the first time I
I have an issue I cant get to the bottom of, so any help
I am working the location service in iphone and I cant get any location
I'm probably doing something realy stupid but I cant get this to work: var
I'm working on some Clojure code that has some circular dependencies between different namespaces
I have an issue that I've spent hours trying to figure out, but since
I am working on my first 'production' WPF app, and I'm encountering an issue.
I'm working on some code that uses Open Dynamics Engine . I've worked with
I can't get this one. Had an app that was working great. Then I
I am making use of a tablesorter library . My issue is that every

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.