How to disable all hyperlink using jquery
<p>I know how to disable one hyperlink at a time, so when user clicks on it then nothing will happen. Here is sample:</p>

<pre><code>$('#myLink').click(function(e) {
    e.preventDefault();
    //do other stuff when a click happens
});
</code></pre>

<p>But now I have many hyperlink for my pager within <code>li</code> and <code>div</code>. It looks like:</p>

<pre><code>&lt;div id='pager'&gt;
    &lt;ul&gt;
        &lt;li&gt;
            &lt;a href='search.aspx?page=1'&gt;1&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;
            &lt;a href='search.aspx?page=2'&gt;2&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;
            &lt;a href='search.aspx?page=3'&gt;3&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;
            &lt;a href='search.aspx?page=4'&gt;4&lt;/a&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;    
</code></pre>

<p>I want to iterate in all hyperlink with in my <code>div</code> and enable/disable all through two routines. As a result when the user clicks then nothing will happen and no postback occurs. One routine will disable all and one routine will enable all hyperlink as before. How can this be achieved?</p>
