页面刷新后如何从javascript中的隐藏字段中获取价值 [英] how to get value from hidden field in javascript after page refresh

查看:78
本文介绍了页面刷新后如何从javascript中的隐藏字段中获取价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文本框和隐藏字段,将值输入到文本框并存储在隐藏字段中刷新网页,然后我无法从隐藏字段中获取该值如何获取???

i ve textbox and hidden field , enter the value to textbox and store in hidden field refresh the webpage, then i cant get the value from hidden field how to get that????

推荐答案

您可以使用jquery或javascript访问它,前提是它仍然存在.您可以通过控件的ID来访问它.
You access it using jquery or javascript, assuming it''s still there. You access it by the id of the control.


(#id").val()在jquery中,其中id是控件的ID.
("#id").val() in jquery where id is the id of the control.


这篇关于页面刷新后如何从javascript中的隐藏字段中获取价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆