Problem in hiding link through jQuery
<p>HTML </p>

<pre><code>&lt;a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$lnkbtnPrevious','')" class="pager-link" id="ctl00_ContentPlaceHolder1_lnkbtnPrevious"&gt;Previous&lt;/a&gt;
&lt;a class="pager-link" disabled="disabled" id="ctl00_ContentPlaceHolder1_lnkbtnNext"&gt;Next&lt;/a&gt;
</code></pre>

<p>JS</p>

<pre><code>&lt;script type="text/javascript"&gt;
        $(document).ready(function() {
            if ($("#ctl00_ContentPlaceHolder1_lnkbtnPrevious").attr("href") == "") {
                $("#ctl00_ContentPlaceHolder1_lnkbtnPrevious").css("display", "none");
            }
            if ($("#ctl00_ContentPlaceHolder1_lnkbtnNext").attr("href") == "") {
                $("#ctl00_ContentPlaceHolder1_lnkbtnNext").css("display", "none");
            }
        });
    &lt;/script&gt;
</code></pre>

<p>I am trying to hide the link if it is not contains href. but this code not working</p>
