Pass href to jquery
<p>I use the following code to open external pages within a div on the current page:</p>

<pre><code>$(document).ready(function(){
     $("#content").load("content.html");
});

(function($) {  
$(function() {  
$('.load_link').click(function() {  
     $("#content").load($(this).attr('href'));  
     var $row = $(this).closest("tr");
     $row.removeClass("rownotselected").addClass("rowselected");
     $row.siblings("tr").removeClass("rowselected").addClass("rownotselected");
     return false;  
 }); 
</code></pre>

<p>Then for the actual link:</p>

<pre><code>&lt;a href="content2.html" class="load_link"&gt;Link text&lt;/a&gt;
</code></pre>

<p>The links are displayed in a table and I like to be able to make the whole row clickable to open the link rather than just the text. Previosuly I only had one page to load so I hard coded the page name in the function and just opened it whenever the row was clicked with the following code:</p>

<pre><code>&lt;tr class="rownotselected load_link" style="cursor:pointer;"&gt;
</code></pre>

<p>However now there are multiple rows that need to be clickable which point to different pages, so I need to be able to pass the href value to the function via the above method in the same way as I do for a regular link. Is this possible? </p>

<p>I hope I've made the question clear, please do let me know if not.</p>

<p>Thanks in advance for any help!</p>
