用<a href="#" onclick="myFun()" >我是按钮</a>
脚本里用ajax提交。代码未调试,自己调一下看看。
function myFun(){
$.post('hello.jsp',{param:value},function(ret){});
}
脚本里用ajax提交。代码未调试,自己调一下看看。
function myFun(){
$.post('hello.jsp',{param:value},function(ret){});
}
$("input[type='submit']").click(function(){
var v=$(thi).next().val();
$.alert(v);
});
这样你就可以弹出,你所点击按钮对应要提交的值了,之后用个post请求,直接传递到后台就行了!