When submit the form it runs both means to say code inside if is running and after else code is also running.
$("#new_chq").submit(function(){