title: Jquery click function doesn't work
body: <p>So i have <code>click</code> function and i'm calling this function couple times on same div, so basicly i have this kind of div:</p>
  
  <pre><code>&lt;div id="upload_submit" class="upload_submit"&gt;Content&lt;/div&gt;
  </code></pre>
  
  <p>and i have two <code>click</code> functions:</p>
  
  <pre><code>    //first function
      $('.upload_submit').click(function(){
          $(this).removeClass('upload_submit');
          $(this).addClass('upload_cancel');
      });
      //second one
      $(".upload_cancel").click(function(){
          alert('test')
      });
  </code></pre>
  
  <p>So by default my div have class <code>upload_submit</code> after i click on that div i change class to <code>upload_cancel</code> so now if i click again i should get alert but for some reason it doesn't happen, what could be wrong?</p>