There are a list of links on a page and some of them are already visited by me. I have to make them invisible after any action(checking a checkbox, clicking button, etc).
You can try full CSS
method :
a:visited { display: none; }
Or
a:visited { visibility: hidden; }
Or you can use a plugin method : Visited Plugin by Remy Sharp
Usage in jQuery
:
$('a').visited().addClass('visited');
With CSS
:
.visited { display: none; }
Or
.visited { visibility: hidden; }
ok, so try this
in your css file
.foo a:visited{
display:none;
}
in your javascript
$('button').on('click', function(e){
$('ul').addClass('foo');
})