Dynamically add href on <a>
<p>I have a logout  link</p>

<pre><code>  &lt;div id="titleInfo"&gt;
      &lt;div id="signOut"&gt;
          &lt;a href="" class="signOutLink"  &gt;Log Out&lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
</code></pre>

<p>I need to add navigation destination dynamically.</p>

<pre><code>$(document).ready(function() {
    //Navigation Handling
    $('.signOutLink').click(function() {
        alert('h');
        window.location.href("LogOut.aspx");
        //window.location.replace("LogOut.aspx");

    });
});
</code></pre>

<p>But it is not working. How can we correct it?</p>
