I'm trying to get some css with jquery in internet explorer.
The css is set in a external file and looks like this:
#something a {
text-decoration: none;
/* since I dont want underline when not hover */
}
#something a:hover {
text-decoration: underline;
}
And I want to get if underline is set or not.
This works in firefox and webkit but not IE:
$('a').hover(function() {
console.log($(this).css('textDecoration'));
/* this return underline in FF and Webkit but not in IE */
});
Does anyone know how to get it to work in IE?
underline. so if you dont give anytext-decorationto it using css, moreover the code will returnunderline