For some reason the postback event keeps firing for my button. If I place a break point on the function(e) part with Firebug, the code just skips right over the function.
Return false does not work either.
<script>
$(document).ready
(
$('#<%:FilterButton.ClientID %>').click
(
function (e)
{
e.preventDefault();
$('#Filter').toggle();
}
)
);
</script>
Edit:
Kundan and others have pointed out that I skipped passing in an anonymous function for the document.ready() event. Careless on my part.
Try this