jqury each的使用

jqury each的使用
2011年09月01日
  
  
  
  
  " rel="stylesheet" type="text/css" media="screen" />
  " rel="stylesheet" type="text/css" media="print" />
  ">
  ">
  ">
  
  
  
  /widgets/tree/lis t/list.css" rel="stylesheet" type="text/css" />
  /widgets/tree/list /list.js">
  '>
  
  
  var rootPath="";
  
  /widgets/treeclass ify/jquery.js">
  " rel="stylesheet" type="text/css" />
  
  #mytable {
  width: 100%;
  padding: 0;
  margin: 0;
  }
  th {
  font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
  color: #4f6b72;
  border-right: 1px solid #C1DAD7;
  border-bottom: 1px solid #C1DAD7;
  border-top: 1px solid #C1DAD7;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  padding: 6px 6px 6px 12px;
  background: #CAE8EA no-repeat;
  }
  td {
  border-right: 1px solid #C1DAD7;
  border-bottom: 1px solid #C1DAD7;
  background: #fff;
  font-size:11px;
  padding: 6px 6px 6px 12px;
  color: #4f6b72;
  }
  
  
  var doctaskid=0;
  var x = 0;
  function submitMethod(doctaskid){
  Ext.MessageBox.confirm('',"确定提交此任务吗?",
  function(btn){
  if(btn=="yes"){
  Ext.Ajax.request({
  method:"POST",
  encoding:"UTF-8",
  url:rootPath + "/project/pretask2Submit.do?iscommand=true&project .id="+doctaskid,
  success:function(response,options){
  var json = Ext.util.JSON.decode(response.responseText);
  Ext.alert.msg('',json.returnMessage);
  if(json.message=="成功提交任务!"){
  //alert("ext " +doctaskid);
  // var urlPath = rootPath + "/project/pretask2Submit.do?iscommand=true&project .id="+doctaskid;
  //LayoutA.showContent2NewPanel('',urlPath, true,41, null);
  }
  },
  failure:function(result,request){
  Ext.alert.msg('', "任务提交失败",'error');
  }
  });
  }
  });
  }
  function pre2submit(){
  $('#mytable tr').each(function(i,d){
  var $tr = $(d);
  var $td = $tr.children(':first-child');
  var $input = $td.children('input');
  alert($input.attr('checked') && x==0);
  if($input.attr('checked')==null && x==0){
  Ext.alert.msg('tip',"请选择一条数据",'warn');
  return;
  }
  if ($input.attr('checked')) {
  /*alert($tr.find(".displayname").text());
  alert($tr.find(".uncpath").text());
  alert($tr.find(".id").val());
  alert($tr.find(".clipguid").val());
  alert($tr.find(".resourcetype").val());
  alert($tr.find(".parentid").val());*/
  var doctaskid = $tr.find(".doctaskid").val();
  x=1;
  submitMethod(doctaskid);
  }
  });
  }
  
  
  
  
  
  选择
  displayname
  uncpath
  
  
  
  
  
  
  ${t.displayname }
  ${t.uncpath }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值