思路话语

。Arlen:思想有多远你就能走多远...

js 获取 table 某一列

<table   width="504"   border="1"   >  
  <colgroup>  
  <col   id="c1"/>  
  <col   id="c2"/>  
  <col   id="c3"/>  
  </colgroup>  
   
      <tr>  
          <td   width="58">id</td>  
          <td   width="81">人数</td>  
          <td   width="343">   具体描述</td>  
      </tr>  
      <tr>  
          <td   width="58"   onClick="hide()">1</td>  
          <td   width="81"   onClick="hide()">10</td>  
          <td   width="343">asdffdaf</td>  
      </tr>  
    </table>  
   
  <script   language="javascript">  
  function   hide(){  
  document.getElementById("c3").style.display="none";  
  }  
  </script>

posted on 2007-07-26 19:27  Arlen  阅读(1080)  评论(0编辑  收藏  举报

导航