jquery学习

来源:互联网 发布:暑假作业答案软件 编辑:程序博客网 时间:2024/06/05 22:31
<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强大了,赶紧保存下来,以后有用啊