|
Hopefully it's as simple as tackling the root of the problem - in your onclick method for the button, simply make the method called return false. That will stop any further action taking place and therefore stop the form submitting. With that said, a button shouldn't be submitting it's a submit button. You are using <input type="button" ...> instead of <button>, right?
This should be in the JavaScript forum, by the way.
|