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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:03:08+00:00 2026-05-24T04:03:08+00:00

Some info on the issue: I am trying to create a list that fills

  • 0

Some info on the issue: I am trying to create a list that fills up with all the issues a person had with their password, I’m sure there are a million ways. However the way I am doing that is by using a var called what (which is defined earlier so that’s not the issue) and having it take on the value of the div before it’s cleared and then what + my new content is placed in the new div, and each if statement adds on. So if your password is missing everything, then a nice long list should show up.

I had this working before made some changes and now its not working again. Also please note I removed the <li> just to trouble shoot the issue. Oh, and what it does now is it runs through all the if statements and displays just the text of the last if statement that was false (so no list is created, however all the text of all the issues flashed quickly till the last one which stays.).

 $("#password").blur(function()
{

  if($('#password').val().length >= 6) {
      passlen = true; 
      checkSubmitStatus();}
    else{   
    what=$("box1").val(); 
      passlen= false;

      $("#box1").fadeTo(200,0.1,function() //start fading the messagebox
        { 
         $(this).html(what +  'Password must be atleast 6 characters long!').addClass('messageboxerror').fadeTo(900,1); 
          });


  }

  if($('#password').val() != $('#username').val()) {
      passuse=true;
      checkSubmitStatus();}
      else{
          passuse= false; 
          what=$("#box1").val();  

        $("#box1").fadeTo(200,0.1,function() //start fading the messagebox
        { 
          $(this).html(what +  'Password must be different from Username!').addClass('messageboxerror').fadeTo(900,1); 
          });  


  }
  re = /[0-9]/;
  if(re.test($('#password').val())) {
      passnum=true;
      checkSubmitStatus();}
      else{
          passnum= false;
        what=$("#box1").val(); 

    $("#box1").fadeTo(200,0.1,function() //start fading the messagebox
        {   

         $(this).html(what +  'Password must contain at least one number (0-9)!').addClass('messageboxerror').fadeTo(900,1); 
          });


  }
  re = /[a-z]/;
  if(re.test($('#password').val())) {
      passlow=true;
      checkSubmitStatus();}
      else{
          passlow= false;
         what=$("#box1").val();  

    $("#box1").fadeTo(200,0.1,function() //start fading the messagebox
        { 

         $(this).html(what +  'Password must contain at least one lowercase letter (a-z)!').addClass('messageboxerror').fadeTo(900,1); 
          });


  }
  re = /[A-Z]/;
  if(re.test($('#password').val())) {
      passup=true;
      checkSubmitStatus();}
      else{
          passup=false;
          what=$("#box1").val(); 

          $("#box1").fadeTo(200,0.1,function() //start fading the messagebox
        { 

         $(this).html(what +  'Password must contain at least one uppercase letter (A-Z)!').addClass('messageboxerror').fadeTo(900,1); 
          });

  }

});
  • 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-24T04:03:09+00:00Added an answer on May 24, 2026 at 4:03 am

    You can create a <ul> element and use jQuery’s append/appendTo function.

    var ul = $("ul");
    
    if( /*password passes criterion*/ ) {
       flag = true;
       checkSubmitStatus();
    } else {
       flag = false;
       $("<li></li>").html(errormessage).addClass("messageboxerror").appendTo(ul).fadeTo(900,1);
    }
    
    /*Repeat for each criterion*/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having some issues with an extension that i am trying to make.
you have some info on an item and you got a list of comment
I am trying to load some info from the database asynchronously. I have a
I'm trying to pullout some info from an external site using jQuery and Adobe
I am trying to read some info from a text file by using windows
I'm trying to write a query to pull some info from our database and
I have an issue right now with a program im trying to create. The
I'm trying to make some custom Google maps info windows, but I'm getting the
I am trying to create a function that can subtract between 2 dates but
I'm trying to create a form that contains these multidimensional arrays: <input type=text name=cost[1][desc]>

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.