The problem happens because every time you load the page you attach an
onsubmit handler to the
document. Loading that page multiple times and
document will have multiple copies of the same handler attached to it.
$(document).off('submit', '.<?php echo $validateForm;?>') before
$(document).on('submit'... will remove the previously attached handlers before adding a new one, and will solve your problem.