jQuery - Access form items through function
<p>I found on some examples on the web that people were passing the form to a function and then they were only using the id of the item to access it like in :</p>

<pre><code>&lt;form id="frm"&gt;
&lt;input type="text" id="textbox" name="textbox" value="some value" /&gt;
&lt;/form&gt;

&lt;script&gt;
console.log(getelementval("#frm"));

function getelementval(frm) {
return frm.textbox.val();
}
&lt;/script&gt;
</code></pre>

<p>But FireBug tells me that frm.textbox is undefined... Then I'm searching why it doesn't work on the net but I didn't find anything explaining this option and how to use it.
Any clues?</p>
