title: Jasmine can't trigger click event
body: <p>I am trying to implement a simple Jasmine test in which Jasmine will test if some code is run on click of a input button. But I can't figure why the click is not triggering? I realize it will if i just have the <code>.click()</code> function in beforeEach but I don't think that's how it's suppose to work.</p>
  
  <p><strong>specs</strong></p>
  
  <pre><code>describe("export citations", function (){
    var btn
    beforeEach(function(){            
      btn= $("input#myButton").eq(0);
    });
  
    it("should call click function", function() {
      btn.trigger("click");
      expect($("#content").length).toBeGreaterThan(0);
    });
  });
  </code></pre>
  
  <p><strong>fixture</strong></p>
  
  <pre><code>$(function(){
    $("input#myButton").click(function(e){
    //Run a bunch of code here
    }
  });
  </code></pre>