Var to html div creating list
<p>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 <code>var</code> called <code>what</code> (which is defined earlier so that's not the issue) and having it take on the value of the <code>div</code> before it's cleared and then <code>what</code> + my new content is placed in the new <code>div</code>, and each if statement adds on. So if your password is missing everything, then a nice long list should show up.</p>

<p>I had this working before made some changes and now its not working again. Also please note I removed the <code>&lt;li&gt;</code> just to trouble shoot the issue. Oh, and what it does now is it runs through all the <code>if</code> statements and displays just the text of the last <code>if</code> 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.).</p>

<pre><code> $("#password").blur(function()
{

  if($('#password').val().length &gt;= 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); 
          });

  }

});
</code></pre>
