+ -
当前位置:首页 → 问答吧 → 怎样写成ajax提交

怎样写成ajax提交

时间:2011-06-24

来源:互联网

$(function(){
$(this).click(function() { 
$("input[name='radio'][checked]").each(function(){
if($(this).attr("checked"),true){ 
var eara=$(this).val();
  window.location.href='TUnitAction!selcetMasterid.action?radioid='+eara;  
  }
  });
  });
  });
  这个能不能写成ajax提交, 如果能写 那该怎么写啊!各位大哥、大姐 给小弟说说!!

作者: chuanshuozhiwang1   发布时间: 2011-06-24

HTML code

$.ajax({
   url: "ASHXHandler.ashx",//请求路径
   data: "value="+value,//发送的数据
   success: function(data){//回调函数 data服务器返回值
     alert(msg );
   }
}); 



作者: zell419   发布时间: 2011-06-24