<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<style type='text/css'>
form {
display: inline-block;
}
</style>
<script type='text/javascript'>
$(window).load(function(){
$('form').on('submit', function(e){
var submitButton = $(this).find('input[type=submit]');
$(this).append('<span>submitting...</span>');
submitButton.css('display', 'none');
});
});
</script>
</head>
<body>
<form action="#" method="post" target="_blank">
<input type="text" name="name" value="value"> <input
id="submitButton" type="submit" value="Submit the form">
</form>
</body>
</html>