How do I put an onclick and a return false statement in the same submit button?

try to add your method (jsmethod) to your form onsubmit handler like this

<form onsubmit="jsfunction(); return false;">

and remove the input onclick handler.


just do like this

<input type="submit" onclick="return jsfunction()" />

change in function

function jsfunction()
{
  //you code 
  return false;
}

or just try if you dont want to change function

<input type="submit" onclick="jsfunction();return false;" />

Like this:

<input type="submit" onclick="jsfunction();return false;" />

or just use a button intead of a submit button:

<input type="button" value="Submit" onclick="jsfunction();" />