I would do what @Nexxuz suggested, but to add, if you hide the button in order to prevent duplicate views, you should probably associate the button hiding with the submit event in the form, as this is the "Submit" button, as well as the user. pressing enter
$(document).ready(function($) {
$('#myForm').on('submit', function(evt) {
$('#send').hide();
});
});
source
share