title: Jquery: function runs twice
body: <p>Why does my jquery function runs twice on click ?</p>
  
  <pre><code>$("a").click(processAction);
  
  function processAction(e){
      var clicked = e.target;
  
  //show apply button.
  
          $("#apply").live("click",function(e){
              e.stopPropagation();
              someFunction(clicked);
              alert("this the array " + mydata);
                  clicked = "";
              }); 
  }   
  </code></pre>
  
  <p>someFunction is running twice ! </p>