-2
<template name="server">
<tr>
<td class="column" id="checkBoxColumn"><input type="checkbox"></td>
</tr>
<tr class = "additionalInfo" id = {{this._id}}>
</tr>
</template>
這是我的模板,我不確定要在jQuery函數中放入什麼來從上面的模板中檢索id = {{this._id}}。謝謝。如何獲得jQuery的Meteor spacebar id?
$(WhatGoesHere?).slideDown("slow");
爲什麼不直接使用'class',因爲你沒有使用'id'作爲任何特定的東西。 '$(「。additionalInfo」)。slideDown(「slow」);' – Kairat
如果我這樣做,滑動下來單擊一行,將適用於所有行。我在想如果我使用了每個唯一的ID,那麼每行的點擊就會在它們各自的行上進行滑動。 – asdfasdf