首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

post时怎么阻止某个元素提交

2012-09-06 
post时如何阻止某个元素提交post时如何阻止某个元素提交?比如不想让input typetext namelocation /

post时如何阻止某个元素提交
post时如何阻止某个元素提交?比如不想让<input type="text" name="location" />提交,不使用disabled,因为该元素还是需要编辑。

[解决办法]
提交前设置disabled,提交后移除disabled

热点排行