【发布时间】:2013-07-19 12:52:19
【问题描述】:
在我的网络应用程序中,我有编辑个人资料页面。在editprofile页面中,它们有很多字段,例如
Name : <input type="text" name="name"/>
Location : <input type="text" class="geolocation" name="location">
Birthdata : <input type="date" name="dob">
Profile Picture : <input type="file" name="photo"/>
我只想发回已编辑字段的数据,而不是所有字段的数据。
【问题讨论】:
-
您是在使用标准的“提交”行为还是通过 web-services/wcf?对于 WCF/webservices,过滤项目将遵循 manoj 的解决方案(存储原始值并在包含值之前进行比较)。对于提交,您可能需要遵循 smerny 的解决方案(存储原始值并删除输入标签)。
-
我正在使用普通的表单提交。
标签: javascript jquery html forms validation