Archive

Posts Tagged ‘function’

jQuery: Deshabilitar tecla ENTER en los formularios

December 5th, 2011 No comments

Aquí presentamos una función para deshabilitar la tecla ENTER de los formularios. De esta forma obligamos al usuario a pulsar sobre los botones.

$("form").keypress(function(e) {
  if (e.which == 13) {
    return false;
  }
});
Categories: jQuery Tags: , , ,