my css file has this
a:visited
{
color:red;
}
and my html page has this
<body>
<a href="http://www.w3schools.com">W3Sschools</a>
<div></div>
<a href="http://www.google.com">Google</a>
<div></div>
<a href="http://www.wikipedia.org">Wikipedia</a>
<div></div>
<script>
if($("a:visited").length){
$("a").next().html("this link is visited");
}
</script>
</body>
but it doesn't work .. so i tried another alternative in the script area
<script>
if($("a").css("color","red")){
$("a").next().html("this link is visited");
}
</script>
and it turns all my links in red even if they are not visited what's wrong with this !