具有约束力的问题
摘自html代码
<table>
<tr>
<td haschildren="true"><input id="Grubbel_0" type="radio" name="Grubbel_0" value="0"></td>
<td haschildren="true"><input id="Grubbel_1" type="radio" name="Grubbel_1" value="1"></td>
</tr>
</table>
<img src="img.jpg" style="display:none;"/>
Some
<script language="javascript" type="text/javascript">
$(document).ready(function () {
// Check radiobuttons when clickin on a parent table cell
$("td[haschildren= true ]").click(function () {
$(this).find( input:radio ).attr( checked , true);
});
// What happens when a radiobutton is changed
$( *[haschildren="true"] input:radio ).bind( change , function () {
// This does not work when clicking the td boxes
});
});
</script>
捆绑(改动......)在我直接点击电台盒子时,而不是在我点击拖台时,虽然收听了无线电箱。
采用j Query 1.5.2.
Thanks