alert when not satisfying the condition should stay on the same pane in a wizard
<p>I am trying to check if the user entered particular info or not...if entered on click of the next button on a wizard pane that should be redirected to next pane or else should be on the same pane..</p>

<p>I tried the below code..but when the user doesn't enter info the alert message is popped but it is redirected to next page...what is the mistake i am doing? any help please...</p>

<pre><code>checkinginfo: function () {

            if (!this.info) {
                alert("Enter info to proceed!");
                return false;
            }
            else
            return true;
        },
</code></pre>

<p>Thanks in Advance.</p>
