The jQuery $.post() function is not working in IE. I tried to open developer tools to see if I was getting a console error, but miraculously the function started working.
It is just a standard $.post() function
$.post('child_cb.php?type=check', { value: $(this).val() }, function(data) {
console.log(data);
if (data == 'true') {
$(".check_case").removeClass('bad').addClass('good');
}
else if (data == 'false') {
$(".check_case").removeClass('good').addClass('bad');
}
});
I see no reason why it wouldn't work.
remove/comment out the console.log(data)
, IE cannot process this, it should work fine after you remove this. Had this problem myself recently.
You should make a habit of using this for debugging so you don't forget the console.log :
if(!('console' in window) || ( ('console' in window) && !('log' in console) )){
window.console = {
log:function(e){
alert("You are using console log without the console!")
}
}
}
you can remove the alert, but is ok if you want to be notified that you forgot something. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With