0
下面您可以在表格中看到兩個複選框。選中複選框可切換WebGL模型的可見性/高亮狀態。勾選複選框並點擊鏈接運行onclick事件
<table border="0" cellpadding="0" cellspacing="0" id="AssemblyTable" style="position: absolute; top: 62px; left: 10px; font-weight: bold; color: rgb(255, 255, 255);">
<thead style="font-size:14px;">
<tr>
<th height="30" align="left"> </th>
<th align="left"> </th>
<th align="left"> </th>
</tr>
</thead>
<tbody style="font-size:12px;">
<tr>
<tr><td><code> </code></td>
<td><input type="checkbox" id="Sh-Cmp1" onclick="javascript:myAssemblyBrowser.switchVisibilityState('Sh-Cmp1')" checked="true"></td>
<td><input type="checkbox" id="Hl-Cmp1" onclick="javascript:myAssemblyBrowser.switchHighlightState('Hl-Cmp1')" ></td></tr>
</tbody>
</table>
我需要檢查的複選框,並通過點擊一個鏈接,不表內執行的功能。
我設法勾選複選框,但函數本身未執行。
我該怎麼做? 我一直在搞jQuery的切換功能,但由於某種原因它沒有工作。
'code'document.getElementById('myLink')。click();'code' working – bimmer 2014-12-07 19:00:54