Skip to content

Instantly share code, notes, and snippets.

@tanrax
Created February 11, 2014 19:00
Show Gist options
  • Save tanrax/8941648 to your computer and use it in GitHub Desktop.
Save tanrax/8941648 to your computer and use it in GitHub Desktop.
JQuery: Deshabilitar campos de entrada (formularios)
// para deshabilitar un campo, en este caso un botón para enviar
$('input[type="submit"]').attr("disabled", true);
// para volver a habilitar el botón
$('input[type="submit"]').removeAttr('disabled');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment