0
屬性在IE7只onselecting全選複選框只有一個checjbox大幹快上的Firefox選擇了這個工作fine..How可以在此你不應該使用相同的ID在兩個不同的元素來固定複選框jQuery中
<input type='checkbox' id='selectall' name='selectall' class='selectall' onclick='javascript:selectall1();' /><label><b>Select all</b></label><br>
<input type="checkbox" id="m_q" name="m_q" value="485">
select country
<input type="checkbox" id="m_q" name="m_q" value="486">Select state
<script>
function selectall1()
{
if ($('#selectall').attr('checked')) {
$("#m_q:not([disabled='disabled'])").attr('checked', true);
}
else{
$("#m_q:not([disabled='disabled'])").attr('checked', false);
}
}
</script>
你明白了...... – Hulk 2010-08-30 13:20:42