title: show Div relative to link click jQuery
body: <p>I know there are other questions about this out on the forums but I can't seem to get this to work for me so I thought i'd just start my own.  I want to show a div below wherever the user might click the link on my page.  The HTML is like this;</p>
  
  <pre><code>&lt;div class="DetailHeaderBar Expanded"&gt;
  &lt;span class="imgContainer"&gt;&lt;/span&gt;
  &lt;span&gt;John Smith&lt;/span&gt;
  &lt;img class="TradeDetailsLink" alt="v" src="/Applications/Images/Icons/action_arrow.gif"&gt;
  &lt;a class="TradeDetailsLink" id="DetailsLink" href="#"&gt;Trade Details&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;div id="tradeDetailsSelector" class="ContextMenuPanel" style="position: absolute; display:none;"&gt;
      &lt;div id="AvailableMoneyItem" class="ContextMenuItem"&gt;&lt;a href="#" onclick="javascript:popupAvailableMoney(); return false;"&gt;View Available NFS Money&lt;/a&gt;&lt;/div&gt;
      &lt;div id="OpenOrdersItem" class="ContextMenuItem"&gt;&lt;a href="#" onclick="javascript:redirectToTradeCentral(); return false;"&gt;View Open Orders&lt;/a&gt;&lt;/div&gt;
      &lt;div id="LockCashBufferItem" class="ContextMenuItem"&gt;&lt;a href="#" onclick="javascript:redirectToModelManagement(); return false;"&gt;Add/Edit Locks or Cash Buffer&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>with the Jquery being in the document.ready() function.  I just want to display the TradeDetailsSelector div directly under the "Trade Details" link when it's clicked. This code was modified from a different post that was said to work perfectly, but isn't for me.</p>
  
  <pre><code>$("document").ready(function(){
  $('div#DetailsLink').bind('click',function(event){
  $('#tradeDetailsSelector').css('left',event.pageX);
  $('#tradeDetailsSelector').css('top',event.pageY);
  $('#tradeDetailsSelector').css('display','inline');
  $("#tradeDetailsSelector").css("position","absolute");
  
  });
  })
  </code></pre>
  
  <p>Any help anyone could give me would be great, right now nothing is happening at all and the developer tools in IE aren't showing any errors in the console so i don't know.
  Thank you,
  NickG</p>