event.preventDefault and unbind for submit

Subject:

when using preventDefault()

ex. $('#idOfForm').submit(function(event){

event.preventDefault();

}

//if all validation passes

$('#idOfForm').unbind('submit').submit();

2016-10-05 19:20:42gstlouis