I retrived data from database in form of dynamic list with hyperlink.
Now I want to check whether the link is already clicked or not .If it
is clicked already I want to display that link Italic Otherwise (not
clicked) display that link Bold while loading data from database.
Mycode for dynamic list with hyperlink:
$("div").append("<li id='list' >"+"<a id='link' class='delete'
href='javascript:link()'>" +
results.rows.item(i).StudentName + "</a>"+ "<hr/>"+ "</li>");
function link(){
$(".sidemenu li ").click(function() {
$(".sidemenu li a").css('font-style' , 'italic');
$(this).find('a').css('font-style' , 'normal');
});
}
I want to when I run the application again and again I should get this
clicked link in Italic (I get normal link again run that
application)..
so how to check link status (ie,link is clicked or not) by using that
status get clicked link in italic .after refreshing the page.
Please kindly guide me.Thanks in advance
Here’s a jQuery plugin for finding visited links?