Since you only use `button` here, I would just do `$('input.btn-primary').attr 'disabled', 'disabled'`. Could keep the `form` variable you defined above and do `$('input.btn-primary', form).attr 'disabled', 'disabled'` so you only disable the button within the form being submitted.