hi friends
in the lightbox i render form containing textbox and buttons(next and prev)
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
i used following code, but it is refreshing entire page instead of focusing "next" button alone.
And it gives error: ActionController::MethodNotAllowed Only get requests are allowed
$("input").bind('keyup', function(event){ if(event.keyCode == 13){ $("#nextbtn").click(); } });
please correct if any thing wrong with the syntax