I made a registration form using backbone.js, CoffeeScript and jquery.
I am trying to disable the submit button after 1 click (so that it doesn’t fire events again and again) , i also want that button get active again when i fill fields of my form.. Thanks for your time.
I made a registration form using backbone.js, CoffeeScript and jquery. I am trying to
Share
In your code that runs the event (hopefully in the events delegate routine of your view) all you have to do is tell JQuery to disable the button
Then when you need to re-enable it
Just call the appropriate calls when required.