当表单只有一个启用的输入而没有 javascript 时,如何停止提交表单

How can I stop enter from submitting a form when it has only one enabled input without javascript

我在表格上有一个 google 地址条目。只有一个启用的输入 - 用户在其中键入地址。

如果他们 select 使用鼠标从 下拉列表 中输入一个条目,则一切正常。如果他们按 Enter,则 google 脚本不会填充禁用的地址字段 inputs 并提交表单。

我可以看到这里的原因。 Why does a FORM with one text INPUT submit on enter while one with two text INPUTs does not?

有很多javascript解决方案。没有 javascript; 有什么办法可以解决这个问题吗?通过在表单上放置一些其他 html 控件 ?

正如 MrUpsidown 所说,不要使用表格。 html 页面上没有必要有表格。如果没有表格,则无法提交。