本文介绍了如何确定html表格中单元格的行号和库仑数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个html表,其中有10列作为字段(TC1,TC2 ..... TC10)和10行(R1,R2 ..... R10).根据TC1与R1,TC1与R2等的组合,此功能仅包含通过和失败数据.

当用户单击任何值为失败"的单元格时.
我需要检索该单元格的</brow和列号的值.此点击可以发生在任何值为失败"的呼叫上.

我需要行和列的值来进行进一步的计算

Hi,

I have an html table with 10 columns as fields(TC1,TC2.....TC10) and 10 rows (R1, R2,........R10). This able contains only pass and fail data as per the combination of TC1 vs R1, TC1 vs R2 and so on.

When a user clicks on any of the cell with value as Fail.
I need to retrieve the value of the </brow and column number of that cell. This click could be on any call with value as Fail.

I need the row and column values to do further calculations

推荐答案

<table><tr><td id="tdid"  önclick="funcName()"></td></tr></table>



希望对您有所帮助.



hope it helps.


<?xml version="1.0" encoding="UTF-8"?>

<html>
  <head>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  </head>
<body>

  <script type="text/javascript">



这篇关于如何确定html表格中单元格的行号和库仑数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 18:35