function formQueryOnSubmit(e) {
  console.log("Form submit");

  // Get the current form fields values and use them for the filtering.
  parseResultsFromJSON($("#tournament").val());

  // This prevents the form from being submitted to the server.
  e.preventDefault();
}
// Don't submit the form to the server and handle the submit from the client.
Don't submit the form to the server and handle the submit from the client.
Don ' t submit the form to the server and handle the submit from the client .
function formQueryOnSubmit(e) {
  console.log("Form submit");
  parseResultsFromJSON($("#tournament").val());
  e.preventDefault();
}
function formQueryOnSubmit ( e ) { console . log ( "Form submit" ) ; parseResultsFromJSON ( $ ( "#tournament" ) . val ( ) ) ; e . preventDefault ( ) ; }
Don't submit the form to the server and handle the submit from the client.
Don ' t submit the form to the server and handle the submit from the client .
// Get the current form fields values and use them for the filtering. // This prevents the form from being submitted to the server.