title: How to append this data only once
body: <p>I have some returned xml that is being parsed and displayed with the submission of a form:</p>
  
  <pre><code>$("#Button").live('click',function(){
  $("#Form").validate({
      submitHandler: function(form) {
          $('#prcs3').show();
          var dataString = $(form).serialize();
          $.ajax({
              type: $(form).attr('method'),
              url: form.action,
              data: dataString,
              clearForm: true,
              success: function(data) {
                  var answer = $(data).find("td:eq(3)").text();
                  var message = $(data).find("td:eq(5)").html();
                  var $xml = $( message );
                  if (answer==="True") {
                      $('#prcs3').hide();
                      $xml.find('license').each(function(){
                          var XXXCustomerID = $(this).find('FXCMCustomerID').text();
                          var XXLicense  = $(this).find('NTLicense').text();
                          var Log  = $(this).find('Log').text();
                          var ExpirationDate  = $(this).find('ExpirationDate').text();
                          $("#resultGenerate").show().append($('&lt;li&gt;&lt;span class="ID"&gt;' + XXXCustomerID + '&lt;/span&gt;&lt;span class="XXL"&gt;' + XXLicense + '&lt;/span&gt;&lt;span class="Log"&gt;' + Log + '&lt;/span&gt;&lt;span class="Exp"&gt;' + ExpirationDate + '&lt;/span&gt;&lt;/li&gt;'));
  
                      });
                  } else {
                      $('#prcs3').hide();
                      $('input[type="text"], input[type="password"]').val("");
                  }
              }
          });
          return false;
      }
  });
  });
  </code></pre>
  
  <p>I need to figure out a way to allow it to append only once, or hide the div and populate it again if clicked twice. What i don't want is for user to be able to click button multiple times and it keeps adding the same records. I am trying to hook onto it by checking if it has length, and executing in an if/else statement or possibly using the .one function, but to no avail. I am not able to figure out how to wrap the correct part inside the if/else or how to get the .one funciton to take both a "find" and "each" property.</p>