JavaScript function in href vs. onclick


$('a').click(function(e)
{
e.preventDefault();
/*your_code_here;*/
return false;
}
);

Leave a Reply

Your email address will not be published. Required fields are marked *