I have a problem binding to the change event in Internet Explorer.
I have the following code:
$("#tbFechaValides").attr("disabled", "disabled");
$("#tbCodigo").change(function() {
window.alert("ddd");
if ($(this).val() != " ") {
$("#tbFechaValides").removeAttr('disabled');
} else {
$("#tbFechaValides").attr("disabled", "disabled");
}
});
It works in Firefox but when I test it in IE nothing happens. What am I doing wrong?
Do a sweep for
console.logwhich might be lurking around in your other scripts. IE will choke on this by default.