仅提交某些字段
我有一个巨大的表单,我只想提交在客户端修改的字段。所以我需要在客户端决定提交哪些字段。是否可以?
始终提交所有字段并在服务器端处理该字段不是一个选项。
I have a huge form and I would like to submit only the fields that were modified on client side. So I need to decide, in client side, what fields to submit. Is it possible?
Submit always all fields and handle that in server side is not an option.
只需
禁用
未修改的字段即可。具有disabled
属性的输入不会提交。Just
disable
the fields that were not modified. Inputs with thedisabled
attribute are not submitted.