在jsp中怎么样不刷新页面取得form表单中text的输入值:........
<script language="javascript">
//rObj: 你的form的对象,如:document.all.item("yourtextfield")
function getValue(rObj)
{
var lValue;
lValue = rObj.value;
}
</script>
......<html>
...
<from action="" method="post">
<input type="text" name="yourtextfield" id="yourtextfield"/>
<input type="button" value="取值" onClick="getValue(document.all.item('yourtextfield'))"/>
</form>...
</html>jsp怎么样可以取得本页javascript变量的值:
http://www.csdn.net/develop/read_article.asp?id=19677
<script language="javascript">
//rObj: 你的form的对象,如:document.all.item("yourtextfield")
function getValue(rObj)
{
var lValue;
lValue = rObj.value;
}
</script>
......<html>
...
<from action="" method="post">
<input type="text" name="yourtextfield" id="yourtextfield"/>
<input type="button" value="取值" onClick="getValue(document.all.item('yourtextfield'))"/>
</form>...
</html>jsp怎么样可以取得本页javascript变量的值:
http://www.csdn.net/develop/read_article.asp?id=19677
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货