title: jquery get href value and put into ajax.load
body: <p>I have a page where ID is generated dynamically and be fetch from database and I put the result inside <code>&lt;a&gt;</code> tag :</p>
  
  <pre><code>&lt;?php while($row = mysql_fetch_array($result))
    { ?&gt;
   &lt;a href="&lt;?php echo $row['id']; ?&gt;" onclick="myfunc(); return false;"&gt;ID Number 1&lt;/a&gt;&lt;br /&gt;
   &lt;a href="&lt;?php echo $row['id']; ?&gt;" onclick="myfunc(); return false;"&gt;ID Number 2&lt;/a&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>and when user click the link, the javascript <strong>myfunc()</strong> function will be trigger.</p>
  
  <pre><code>function myFunc(){  
    $("#div").load("get_id.php?","id="+"SHOW THE $row['id'] HERE"); }             
  </code></pre>
  
  <p>But I don't know how to retrieve href value and put it inside the <code>load()</code> method. Can someone show me the correct way? </p>
  
  <p>Thank you</p>
  
  <p>-mike</p>