Hi all,
Here is my simple function
$('#save_button').click(function() {
$(this).attr('disabled',true).val('Saving');
$('#new_record_form').ajaxForm({
url: '/',
type: "POST",
dataType: "json",
beforeSubmit: function(){ alert('Boo!'); },
success: function(){ alert('Hello!'); }
});
});
This works fine in Firefox but not in Internet Explorer, Chrome or Safari.
Commenting out this line $(this).attr('disabled',true).val('Saving');
seems to make things work.
Any reasons for this occuring?