Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to find content of a specific cell with row and column index?
    primarykey
    data
    text
    <p>Using the coordinates of cell i want to find the content of a specific cell.. I mean if we have row index and column index of a specific cell and we want to get the content of that specific cell by passing the index of cell as arguments in a function and then searching for the content of that specific cell in the html table. </p> <pre><code>function createtable() { function displaytable(argument) { var tr=document.createElement('tr'); for (var i=0; i &lt; argument.length; i++) { var td=document.createElement('td'); if (i == 0) { td.appendChild(document.createTextNode(argument[i])); } if (i == 1) { td.appendChild(document.createTextNode(argument[i])); } if (i == 3) { td.appendChild(document.createTextNode(argument[i])); } if (i == 2) { td.ondblclick= function () { var column_index= (this.cellIndex) -1; var row_index= (this.parentNode.rowIndex); search_cell(row_index,column_index); } td.appendChild(document.createTextNode(argument[i])); } tr.appendChild(td); } document.getElementById('table_body').appendChild(tr); } document.write("&lt;table border=\"1\"&gt;&lt;tr&gt;&lt;th&gt;INDEX&lt;/th&gt;&lt;th&gt;--CELL NAME--&lt;/th&gt;&lt;th&gt;--PIN NAME--&lt;/th&gt;&lt;th&gt;--PG PIN--&lt;/th&gt;&lt;/tr&gt;&lt;tbody id='table_body'&gt;&lt;/tbody&gt;&lt;/table&gt;"); for (var x=0; x &lt; array_cells.length; x++) { displaytable([x+1,array_cells[x].cell,array_cells[x].pins,array_cells[x].pg_pins]) } function search_cell(row_index,column_index) { //What to write over here } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload