javascript:void(0) not working

javascript:void(0) not working


Hi,
I am a newbie in using jquery.Please excuse me if similar query has
been posted earlier.
I am building pagination using jquery.
links are displayed like
First | Previous | 1 - 15 | Next | Last
If i click on Next link, it will build the whole listing on run time
some relevant parts of my code is
$(function()
{
$(’#nextlink’).bind(’click’,loadmaillist)
$(’#prevlink’).bind(’click’,loadmaillist)
$(’#lastlink’).bind(’click’,loadmaillist)
$(’#firstlink’).bind(’click’,loadmaillist)
});//ft
function loadmaillist()
{
clickedlink = $(this).text();
if(clickedlink == ‘Previous’)
{
startcount=Number(temp)-Number(msgcount);
}
else if(clickedlink == ‘Next’)
{
startcount=Number(temp)+Number(msgcount);
}
else if(clickedlink == ‘First’)
{
startcount=0;
}
else if(clickedlink == ‘Last’)
{
startcount=lastcount;
}
maillist_html_tag =
‘<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100%><TR
BGCOLOR=#D2D2D2><!-- New Mail --><td width=23 height=32
align=center><table width=23 cellpadding=0 cellspacing=0
border=0><tr><td></td></tr></table></td><!-- New Mail --><!--
Attachment Pin --><td width=23 align=center><table width=23
cellpadding=0 cellspacing=0 border=0><tr><td></td></tr></table></
td><!-- Attachment Pin --><td width=23><table width=23 cellpadding=0
cellspacing=0 border=0><tr><td></td></tr></table></td><!-- From/To --