日期:2014-05-16  浏览次数:20345 次

jsp里的参数传递给js,js修改过后怎么传回给jsp
jsp:<input id="page" value="<%1%>">
<td><input type="button" value="下一页" onclick="xyy()"></td>
js:function xyy(){

}
js里怎么写能够修改value里的

------解决方案--------------------
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
<script>
function xyy(d){
alert($(":button").val());
$(":button").val('测试');
}
</script>
</head>
<body>
<input type="button" value="下一页" onclick="xyy('d');">
</body>
</html>