How do you get a value onClick from outside the anchor that is clicked?
<p>Assuming the following HTML:</p>

<pre><code>&lt;tr id="record_1" &gt;
&lt;td id="name_1"&gt;&lt;a href="#" id="logNameAndValue"&gt;Charles Dickens&lt;/a&gt;&lt;/td&gt;&lt;td id="value_1"&gt;A Christmas Carol&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>How can I print out <code>name=Charles Dickens value=A Christmas Carol</code> by partially using the following jQuery: </p>

<pre><code>$('#logNameAndValue').click( function(event){
    name=?
    value=?
    console.log("name=" + name + " value=" + value);
});
</code></pre>
