對於需要傳遞行中前兩個tds內容的錶行,我有點擊函數。jQuery:在一行的onclick函數中指定兒童的索引
// Assign a click handler to the rows
$('#supportTables1 tr').click(function()
{
var firstTd = $(this).find('td').html();
//need to get the next td. below line doesn't work.
var secondTd = $(this).find('td')[1].html();
window.open('snglContactList.php'+'?search_word='+firstTD+'?list_name=secondTd);
});
我可以拿到首個TD就好了,但我難倒,我知道什麼是訪問的第二個TD(我試過設置它的指數diferrent方法)的深刻簡單的事情。
你可以發佈html到這個? – shoebox639 2010-11-16 20:18:24