用type="hidden"的input保存上个页面选中的值
2016-09-21 00:00
295 查看
摘要: 过段时间估计自己都看不懂标题了,不过这是在看自己公司的代码时学到的一招,觉得非常实用啊
在首页选中的商品类型是洁具,对应的值为10003;
在首页选中的服务类型分别是安装、维修,对应的值分别为10001和10002;
在首页点击下单时,跳转到下单页面时,值也保留下来了;
在首页选中的商品类型是洁具,对应的值为10003;
在首页选中的服务类型分别是安装、维修,对应的值分别为10001和10002;
在首页点击下单时,跳转到下单页面时,值也保留下来了;
<input type="hidden" id="protype" value="10003"/> <input type="hidden" id="sertype" value="10001,10002"/>
相关文章推荐
- 去掉.net页面中的<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
- 去掉.net页面中的<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE
- asp.net 隐藏页面<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value=''>的值
- 在aspx页面不输出input type=hidden name="__VIEWSTATE"
- 如何点击文字,把input type="radio" 或者 input type="checkbox" 也选中
- 清空页面上<input type="text" id="inputtext" runat="server">的值的方法
- ID和Name的问题------写个<input type="hidden">在后台取不到值
- 使用<Combox:combox>时因为多加了<input type="hidden">造成的错误
- 解决<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" 过长
- <input type="file">更改 页面显示 浏览 为上传 .
- 页面<input type="radio"...>取值
- 点击文字,把input type="radio"也选中
- html 按钮(input type="button") onclick 页面转跳
- 关于ViewState的问题 <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="之后有一大串乱码
- 关于ViewState的问题 <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="之后有一大串乱码
- aspx页面里不输出 nput type=hidden name="__VIEWSTATE" 的方法
- input type="hidden" 作用
- 解决<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" 过长