我有呈現下面的HTML「此」 javascript和ASP.NET控制前綴
<tr>
<td>Control 1 with onclick="javascript:Test(this);" </td>
<td>Control 2</td>
<td><span><div>Control 3</div></span></td>
</tr>
function Test(myThis)
{
//Here I would like to get references to the siblings of Control 1 (in this ex: Control 2, Control 3)
//and disable them. Any ideas?
}
我使用發現兄弟姐妹,因爲這是在與深度嵌套的usercontrol的這種方法的代碼= 3和ASP.NET引用的控件的前綴非常難,特別是如果我在頁面上有多個控件實例。