Skip to main content
added 19 characters in body
Source Link
murrekatt
  • 6.2k
  • 5
  • 41
  • 65

You use CoffeeScript to do something like these lines:

jQuery -> $('.theform').submit ->   $('input:submit').attr("disabled", true) 

This disables the form submit button when the form with class="theform" is submitted. Depending on your need you adjust this to fit with your class/id for the form.

You use CoffeeScript to do something like these lines:

$('.theform').submit -> $('input:submit').attr("disabled", true) 

This disables the form submit button when the form with class="theform" is submitted. Depending on your need you adjust this to fit with your class/id for the form.

You use CoffeeScript to do something like these lines:

jQuery -> $('.theform').submit ->   $('input:submit').attr("disabled", true) 

This disables the form submit button when the form with class="theform" is submitted. Depending on your need you adjust this to fit with your class/id for the form.

added 7 characters in body
Source Link
murrekatt
  • 6.2k
  • 5
  • 41
  • 65

You use jQueryCoffeeScript to do something like these lines:

$('form''.theform').submit -> $('input:submit').attr("disabled", true) 

This disables the form submit button when the form with class="form"class="theform" is submitted. Depending on your need you adjust this to fit with your class/id for the form.

You use jQuery to do something like these lines:

$('form').submit -> $('input:submit').attr("disabled", true) 

This disables the form submit button when the form with class="form" is submitted. Depending on your need you adjust this to fit with your class/id for the form.

You use CoffeeScript to do something like these lines:

$('.theform').submit -> $('input:submit').attr("disabled", true) 

This disables the form submit button when the form with class="theform" is submitted. Depending on your need you adjust this to fit with your class/id for the form.

Source Link
murrekatt
  • 6.2k
  • 5
  • 41
  • 65

You use jQuery to do something like these lines:

$('form').submit -> $('input:submit').attr("disabled", true) 

This disables the form submit button when the form with class="form" is submitted. Depending on your need you adjust this to fit with your class/id for the form.