In IE7 only onselecting selectall checkbox only one checjbox gets selected on firefox this works fine..How can this be fixed
<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>