I have the following code working perfeclty in FireFox, but it won't work at all on IE6:
$("[name=servicos\\[\\]]").each( function() {
this.checked = false;
alert(this.name);
}
);
$.getJSON("check_servicos.php?id=" + id,
function(data) {
$.each(data,
function(key, val) {
alert($("#" + key).attr("id"));
if(val > 0) $("#" + key).attr("checked", "checked");
}
)
}
);
Could anyone tell me what I'm missing, other than a way to forcefully upgrade all browsers at my job?