Fork me on GitHub

ajax传值

 1 $(function(){
 2     $.ajax({
 3     url:'order!seatnum.action',
 4     data:{
 5     "entity.id":$("input[name='entity.id']").attr("value"),
 6     seattype:$("input[name='seattype']").attr("value")
 7     },
 8     type:'post',
 9     success:function(){
10     alert("chenggong");
11     },
12     error:function(){}
13     })
14     alert($("#snum").text());
15 })

 

posted @ 2015-09-18 14:06  ZZZZW  阅读(156)  评论(0编辑  收藏  举报
AmazingCounters.com