I have a simple click and show, click and hide button, but when I click it, the page anchors at the top of the page. Is there anyway to prevent this? So that when I click th
Change the hyperlinks to point to a non-existent anchor, like this:
Flag
Or, make your handlers return false, like this:
$('#reportThis').hide();
$('#flagThis').click(function () {
$('#reportThis').show("slow");
return false;
});
$('#submitFlag').click(function () {
$('#reportThis').hide("slow");
return false;
});