How enable an disable linkbuttons style and events with jQuery
<p>I have a linkbutton that shows a confirm window function when it's pressed:</p>

<pre><code>$('#LinkButton1').click(function () {
     var continue = confirm('¿CONTINUE?');
    if (continue) {
        return true;
    }
    else
        return false;
});
</code></pre>

<p>I want to disable a linkbutton, its style and its clic event, when page loads:</p>

<pre><code> $('#LinkButton1').attr("disabled", "disabled").on('click', function (e) {
    e.preventDefault()
 });
</code></pre>

<p>The linkbutton is disabled and onclic server event is removed but the prompt it's still showing.</p>

<p>When user types something into a textbox this linbutton should be enabled again and get the previously unbinded clic events:</p>

<pre><code> $(':input').keypress(function () {
    $('#LinkButton1').removeProp('disabled').off('click');
});
</code></pre>

<p>This gets back the server onclic event but I now I miss the confirm windows.</p>

<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/Tvbg9/3/" rel="nofollow">http://jsfiddle.net/Tvbg9/3/</a>
In this demo the confirm windows is not showed but i still see in my page.</p>

<p>What I am doing wrong?
thank you.</p>
