jquery return false not Working in Function called from onclientclick button event
<p>in my ASPX page i have declared a jquery function and called it in button's onclientclick function but the return false is not occuring in it</p>

<pre><code> &lt;asp:Button ID="btnRemove" Text="Remove" runat="server" CausesValidation="true" CssClass="submitButton" OnClientClick="CheckConfirm();" OnClick="btnRemove_Click" /&gt;

function CheckConfirm() {
            if ($("['txtServerName']").val() != "") {
                var r = confirm("The selected server will be deleted from the Database!!");
                if (r == true) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }
</code></pre>

<p>I am new To jquery. Please let me know why the return false is not stopping hte event from proceeding.</p>
