straight to the point , this is my simple code .
$(".vm-options a").click( function() {
$(this).addClass("vmselected").siblings().removeClass("vmselected");
});
<div class="vm-options">
<a href="#" class="vm-icon vm-list vmselected" id="list">List view</a>
<a href="#" class="vm-icon vm-grid" id="grid">Grid view</a>
</div>
now i need it to remember my choices every time i click on 'a href' tag , how can i add cookie to it .
thank you .