首页 新闻 会员 周边

在jsp文本框中如何获得js页面通过ID获得的值

0
悬赏园豆:10 [已关闭问题] 关闭于 2015-03-03 14:45

jsp页面中的代码:

<input style="margin-left:10px;height:20px;width:100px;" type="text" id="newVnum">

<input type="button" value="提交修改" style="margin-left:10px;width:60px;height:25px;" onClick="update_vNum()" /><label id="vNumMsg" style="margin-left:10px;background:red;color:#fff"></label>
        </p><br>

效果图:

js中的代码:

现在我咋能在jsp页面中获得到js页面中var newVnum=$("#newVnum");中得到的newVnum,我想在点击提交修改时,文本框中显示以前的那个值,谢谢啊

 

Fainer的主页 Fainer | 初学一级 | 园豆:140
提问于:2015-03-01 18:16
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册