<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <script language="javascript"> function cc(){ var bb=document.getElementById("abc").getElementsByTagName("td"); for(var i=0;i<bb.length;i++){ bb[i].onclick= function(){  document.form1.txt.value=this.innerText; } } } </script> </head>

<body>  点下单元格看看  <table width="600" border="1" cellspacing="0" cellpadding="0" > cc(); </script> </body> </html>

 

 

点下单元格看看 

11 22 33
wer werf sdf
sdf wer ewr
sdf sdf sdf

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-03-09
  • 2022-12-23
猜你喜欢
  • 2021-11-09
  • 2021-12-28
  • 2021-06-15
  • 2021-12-26
  • 2021-06-19
  • 2021-07-05
  • 2022-01-29
相关资源
相似解决方案