how to set input value based on sending anchor using jQuery
<p>I've got a list of OpenID's, and I'd like to populate an input field based on the sending anchor.</p>

<p>Basically the goal will be to populate the input with "<strong>Google</strong>" if the first button is clicked, "<strong>Yahoo!</strong>" for the second, etc.</p>

<p>Does anyone know how I would do this?</p>

<pre><code>            &lt;div&gt;
                &lt;div class="openid openid_large_btn google-large"&gt; &lt;a href="#" class="openid_btn" &gt;&lt;span&gt;Google&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
                &lt;div class="openid openid_large_btn yahoo-large"&gt;&lt;a href="#" class="openid_btn" &gt;&lt;span&gt;Yahoo!&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
                &lt;div class="openid openid_large_btn myopenid-large"&gt;&lt;a href="#" class="openid_btn"&gt;&lt;span&gt;myOpenID&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
                &lt;div class="openid openid_large_btn aol-large"&gt;&lt;a href="#" class="openid_btn"&gt;&lt;span&gt;AOL&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
                &lt;div class="openid openid_large_btn facebook-large"&gt;&lt;a href="#" class="openid_btn"&gt;&lt;span&gt;facebook&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
            &lt;/div&gt;

&lt;script&gt;
    $('.openid_btn').click(function () {

//I'd like to set this to the info contained within the &lt;span&gt; tags
        $("#openid_identifier").val("???"); 


        $('#OpenIDForm').submit();
    });
&lt;/script&gt;
</code></pre>
