how can i check table rows for hrefs and make them clickable, but rows with no href do nothing (using jquery)
<p>I'm using jQuery tablesorter to add functionality to a couple of tables. I have the zebra effect and mouseover to highlight rows, and all is fine. On several rows, I have href links that are clickable, and they open the correct urls. However, and here is my problem, even the rows that have no href links are trying to open urls, and consequently throwing page errors.</p>

<p>This is my code for the links:</p>

<pre><code>$(".tablesorter tr").click(function() {
    window.location.href = $(this).find("a").attr("href");
});
</code></pre>

<p>I guess I have to check rows for 'a', and if not found, then do nothing. Sounds easy, but how do I code it?!</p>

<p>Any help would be greatly appreciated! As you probably guessed, I am new to jQuery and programming and have begun a very steep learning curve!!!</p>
