<tr>
<td style="display:none;">
62
</td>
<td>
<span style="color:Blue; cursor:pointer;" id="editLink">Edit</span> |
<span style="color:Blue; cursor:pointer;" id="detailsLink">Details</span>
</td>
<td>
Update Loan Data Component Rows
</td>
<td>
Daily: 22:00:00 PM
</td>
<td>
False
</td>
</tr>
所以我有一個綁定到cursor:pointer
的兩個跨度的JQuery單擊事件。點擊時,我希望能夠輕鬆獲取此行中每個表格單元格中的值,並使用這些值在頁面的其他位置設置元素。用jQuery獲取同一行的值
我該如何在JQuery中做到這一點?
P.S.我可以記住不同的單元格,但是每行都會有複製代碼。
這很完美,但是,我怎麼知道我在哪? – slandau
@slandau:你什麼意思?你想要什麼類型的指標,除了文字內容?像索引一樣? – user113716
完全像索引 – slandau