Q:

Dynamically add href on 

I have a logout  link
  <div id="titleInfo">
      <div id="signOut">
          <a href="" class="signOutLink"  >Log Out</a>
      </div>
  </div>

I need to add navigation destination dynamically.
$(document).ready(function() {
    //Navigation Handling
    $('.signOutLink').click(function() {
        alert('h');
        window.location.href("LogOut.aspx");
        //window.location.replace("LogOut.aspx");

    });
});

But it is not working. How can we correct it?

A:

$(document).ready(function () {
    $('a.signOutLink').click(function () {
        window.location = "LogOut.aspx";
    });
});

A:

Thanks to all.  I used following:
$('.signOutLink').click(function () {
    window.location.href("LogOut.aspx?a=b"); //Can use REPLACE also
    return false;  //FALSE

});

