jquery学习

<script language="javascript">
  function setupChannelTempletRl(){
    var channel_id = document.getElementById("channel_id").value;
    var temp_ids = "";
    $("input[type=radio]:checked").each(function(){
       temp_ids += "," + $(this).val();
    });
    if(temp_ids != ""){
       temp_ids = temp_ids.substring(1);
    } 
  document.location.href="../sysManage/setupChannelTempletRl.action?channel_id=" + channel_id + "&template_ids=" + template_ids;
 }
</script>

 

$(function(){
        var orderIds = "";
		$("input[name='warnSignorderId']").each(function(){
             orderIds += "," + $(this).val();
        });
        if(orderIds != ""){
        	orderIds = orderIds.substring(1);
        	
        	$.ajax({
				type: "POST",
				url: "../warn/orderStatusWarnSign.action",
				data: "orderIds="+orderIds,
				dataType:"json",
				cache:false,
				success: function(message){
				   
				   
				},
				error:function(message){
					
				}
			});
        } 
    });


jquery 太TM强大了,赶紧保存下来,以后有用啊

你可能感兴趣的:(jquery学习)