Like the following table:
<table class= "List_tab" id= "Personaldetail" > <tr class= "Head" > <th> physical Examination Number </th> < th> name </th> <th> gender </th> <th> age </th> <th> Personal Status </th> <TH&G t; unit name </th> </tr> <tr> <td recordid= "201407220001" >201407220001 </td> <t D> moving toward Hope </td> <td> men </td> <td>100</td> <td> very good </td> <td& GT;XXX Co., Ltd. </td> </tr> <tr> <td recordid= "201407220002" >201407220002 </td> & Lt;td> moving toward Hope </td> <td> men </td> <td>100</td> <td> very good </td> < ; Td>xxx Co., Ltd. </td> </tr> <tr> <td recordid= "201407220003" >201407220003 </td> <td> moving toward Hope </td> <td> men </td> <td>100</td> <td> very good </td> <TD>XXX Co., Ltd. </tD> </tr> </table>
:
Now I'm going to get all the values in the first column of the list, separated by commas.
The jquery code is as follows:
$ ("#personalDetail Tr[recordid]"). each (function (i) {allrecordids+=$ (this). attr ("recordId") + ",";}); alert (allrecordids);
jquery Gets the first column value of the loop list