IE6 and selector
IE6 and selector
I'm having some trouble with the following piece of code 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");
}
)
}
);
It works as intended in FF, but it's not even firing in IE6, and after trying everything I could think of, I have no clue what else to try.
Can anyone at least point me in the right direction (other than Google. I'm having no luck there)?