我有一个有几列和几行的表。当我单击每行开头的复选框时,我想将特定单元格的值存储到变量中,并将其用于其他内容的比较。
我将如何从与单击的复选框位于同一行的单元格中获取数据?
此函数被单击的复选框的单击事件调用
function checkLives
if ($('.CarrierID:contains("2")', $( ':checkbox' ).parents( 'td' ) ).length > 0 )
{
//if its not dental
<%if (this.CurrentProduct != Products.Dental){%>
//if the lives being quoted are over 16
//Here is where I would need the value inside of that table row
if (livesover16)
{
//show popup
$('#over16').dialog('open');
return false;
<%}%>
}