title: jquery - click event
body: <p>In the lightbox i render form containing textbox and buttons (next and prev).</p>
  
  <p>Problem is, after i edit content in textbox and click "Enter button" it should fire click event on "next" button so that it takes to next form in lightbox</p>
  
  <p>I used following code, but it is refreshing entire page instead of focusing "next" button alone. </p>
  
  <p>And it gives error: <code>ActionController::MethodNotAllowed  Only get requests are allowed</code></p>
  
  <pre><code>$("input").bind('keyup', function(event) {
      if(event.keyCode == 13) {
         $("#nextbtn").click();
      }
  });
  </code></pre>
  
  <p>please correct if any thing wrong with the syntax</p>