get input value on submit javascript prevent default code example
Example: javascript allow default
$('form').submit( function(ev){
ev.preventDefault();
//later you decide you want to submit
$(this).unbind('submit').submit()
});