title: Dynamically load content from jsp resultset in Div
body: <p>I am not sure the best way to go about this, basically I have a JSP page that returns a set of results (a list of employees) in HTML from a MySQL database.  Using a loop, each item is returned and formated into a link.  Eg. </p>
  
  <pre><code>&lt;a href="details.jsp?emp=\"" + resultSet.getString(1) + "\"/&gt;"
  </code></pre>
  
  <p>Therefore each link will allow a user to load a page that will display the details of the selected employee.</p>
  
  <p>I now want to improve this.  I have a <code>div</code> on the results page that I would like to populate with the employee details instead of opening a new link.  My problem is, I do not know how to go about this using jQuery.  I have looked at <code>.load()</code> but that seems to only work with a predefined address and when using <code>.click(#div_id)</code>, how could jQuery know what employee details to load?</p>
  
  <p>Sorry if this is a simple question, but I am still learning.  Can anyone suggest where I should look or how I could go about this?</p>