Use the jquery traversal function-find (), EQ ()
I. Background
Gets the value of a column when traversing the table.
ii. Examples and explanations
1) The main framework of HTML is as follows:
<div class= "Box-body" >
<table id= "table1" class= "table table-bordered table-striped" >
<thead >
<tr id= "Method_title" >
<th rowspan= "2" > Display order </th>
<th rowspan= "2" > Name </ th>
<th rowspan= "2" > Sequential settings </th>
<th rowspan= "2" > Actions </th>
</tr>
</thead>
<tbody id= "Table_body" ></tbody>
</table>
<div id= "Result" > </div>
</div>
2) The effect diagram is shown as follows:
3) Gets the button value for the third row, fourth column. The code is as follows:
$ ("#table1"). Find ("tr"). EQ (2). FIND ("TD"). EQ (3). text ();//The result is the value of ID label3 button.
Iii. references
1) JQuery traversal-Find () method http://www.w3school.com.cn/jquery/traversing_find.asp
2) jQuery Traversal-eq () method http://www.w3school.com.cn/jquery/traversing_eq.asp