jQuery title attribute to textbox
<p>I am new to jquery.  I have a list of links in my app.  I want to be able to take the title attribute of any of the links and put it in a text box on a page when the link is clicked.  This is what I've got so far but it doesn't work:</p>

<pre><code> &lt;p&gt;&lt;a href="#" title="text I want to get"&gt;Link 1&lt;/a&gt;&lt;/p&gt;
 &lt;p&gt;&lt;a href="#" title="more text I want to get"&gt;Link 2&lt;/a&gt;&lt;/p&gt;
 &lt;p&gt;&lt;input id="myTextBox" type="text"&gt;​&lt;/p&gt;

$("a").attr("title").click(function () {
$('#myTextBox').attr($(this).attr());
});
</code></pre>

<p>Any help would be greatly appreciated.  Thanks!</p>
