本帖最后由 panfang 于 2012-05-19 23:00:57 编辑

解决方案 »

  1.   

    是不是显示 不出来checkbox?
      

  2.   

    你好,不知到你的表格的第一列是否有值,如果有值你可以试试这样做   
               $(document).ready(function(key, value){
           $("#tabs-2 tbody tr").each(function(){
      var posX = $(this).find("td:first").position().left;
      var posY = $(this).find("td:first").position().top;
      var box="<input type=\"checkbox\"  name=\"checkEmp\"></input>";  
      $("<span>         </span>").html(box).css({left:posX,top:posY}).appendTo($(this).find("td:first"));
    });
          如果你的第一列没有值,可以直接这样使用:
               $(document).ready(function(key, value){
           $("#tabs-2 tbody tr").each(function(){
      var posX = $(this).find("td:first").position().left;
      var posY = $(this).find("td:first").position().top;
      var box="<input type=\"checkbox\"  name=\"checkEmp\"></input>";  
      $(this).find("td:first").html(box);
    });
     不知对你是否有帮助。