html form enter 不submit

  • 27
  • 0

html form enter 不submit

 $("#form").keypress(function (e) {
            if (e.which == 13) {
                return false;
            }
        });