kaniosrn-j
5/12/2017 - 3:51 PM

Disable Form Button on Submit

Disable Form Button on Submit

$('.form-disable').submit(function(event) {
	var self = $(this),
		button = self.find('input[type="submit"], button'),
		submitValue = button.data('submit-value');
	button.attr('disabled', 'disabled').val((submitValue) ? submitValue : 'Please wait...');
	return false;
});