title: jquery redirect on enter press within a form?
body: <p>I have an html form and within the form I have a <code>&lt;button&gt;</code> element.  I am using jquery to redirect the page upon clicking the button (essentially I wanted to nest form elements but since its not valid xhtml I used a javascript workaround).</p>
  
  <p>Furthermore, clicking the button grabs text from an input field, appends it to the query string then redirects the page (note that both the input field and the button are inside of the html form).</p>
  
  <p>Now for what I want to do: I also want to have the same functionality when the user hits the 'enter' key from within the previously mentioned input field (i.e. same functionality as if the <code>&lt;button&gt;</code> was pressed.  I have already written code that binds to the enter key (when I press enter in the input field I can get an alert to pop up).  The problem is that since this input field is within <code>&lt;form&gt;</code> tags, I cannot seem to override the default action which is: upon pressing enter trigger the submit button.  Is it even possible to override this and have the pressing enter event redirect the page to something other than whatever <code>&lt;form action</code> is set to?  Thanks.</p>