title: clicked div to load content from server load append result each time clicked
body: <p>I have a div "d1" when clicked it load friend request from the server into hidden div d2"",but when i click it multiple time ,it append the same result over and over ,I tried this to help solve the problem </p>
  
  <pre><code>if($("#d1").data('clicked')) {              
  // do nothing           
      }
  else{
  $("#d1").click(function(){
                  $("#d1").data('clicked', true);
                  // then call_server to get result  and append to div2
  }
  </code></pre>
  
  <p>but it fails it always append the same result and i end up with big list of duplicates </p>