Change highlight color
FWIW I found that IE8 would give an error in jQuery 1.7.2 usingeffect("highlight",...)
when the current color of the element was specified as text or when the highlight color was specified as text (i.e. "blue"
) instead of in hex notation: "#ff0000"
.
$("div").click(function () {
$(this).effect("highlight", { color: "#ff0000" }, 3000);
});
will highlight in red. It's all in the documentation.
According to the documentation:
$(this).effect("highlight", {color: 'blue'}, 3000);