How can I attach a click event to a button and prevent postback?

The code I have doesn't seem to be working.

$('#btnNext').click(function() {
        return false;
    });
Edit
Report