function check_info(id,value){
var data = $("#"+id+":checked").val();
if(value==1){
if(data == 'on'){
var id_val = id.substring(7);
$("#user_g"+id_val).css("display","block");
$(".chkbox_"+id_val).attr("checked","checked");
$("#user_hidden_"+id_val).val("2");
}
else{
var id_val = id.substring(7);
$("#user_hidden_"+id_val).val("0");
$("#user_g"+id_val).css("display","none");
$(".chkbox_"+id_val).attr("checked","");
$("#user_hidden_"+id_val).val("0");
}
}
......
......
}
The function should be called from here and according to checkbox option, it will show the following div or hide. It works well in all browsers but not any version of IE. Please help.
<input name="gro_id_1" type="checkbox" id="gro_id_1" onclick="javascript:check_info(this.id,'1')" title="Office">
<div id="user_g1" class="gr_block">
--- outupt ---
</div>