JQuery 작업 테이블

      
jQuery('#showtable').live('click',function(){
        //var aa=jQuery('#Employeetb tr:eq(0) td:eq(0)').text();
        var aa=jQuery('#Employeetb tr:eq(0) td').length;
        alert(aa);
       });
<table border="1" id="Employeetb">
<tr id="row1"><td id="col1_1">  </td><td id="col1_2">  </td><td id="col1_3">  </td></tr>
<tr id="row2"><td id="col2_1">00001</td><td id="col2_2">  </td><td id="col2_3"> </td></tr>
<tr id="row3"><td id="col3_1">00002</td><td id="col3_2">  </td><td id="col3_3"> </td></tr>
<tr id="row4"><td id="col4_1">00004</td><td id="col4_2">  </td><td id="col4_3"> </td></tr>
<tr id="row5"><td id="col5_1">00634</td><td id="col5_2">  </td><td id="col5_3"> </td></tr>
<tr id="row6"><td id="col6_1">00987</td><td id="col6_2">  </td><td id="col6_3"> </td></tr>

</table>
<input type="button" id="showtable" value="  table" />

좋은 웹페이지 즐겨찾기