Get value of name attribute in form
<p>I'm trying to get the value of a name attribute in my html form.
I tried:</p>

<pre><code>$('input[name=username]').val();
</code></pre>

<p>but that doesn't work it.
<br /> 
<br />
Hope someone can help me.</p>

<p><strong>edit:</strong></p>

<p>Sorry I wasn't really clear but I want to get the input value of the form.
When I try:</p>

<pre><code>GM_setValue ("username", $('input[name=username]').val() ); 
</code></pre>

<p>and check about:config after I fill in the form the value of username is empty</p>

<p>Thanks!</p>
