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
Try this:
$('#reportThis').hide(); $('#flagThis').click(function (evt) { $('#reportThis').show("slow"); evt.preventDefault(); }); $('#submitFlag').click(function (evt) { $('#reportThis').hide("slow"); evt.preventDefault(); });