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 :
<form id="frm">
<input type="text" id="textbox" name="textbox" value="some value" />
</form>
<script>
console.log(getelementval("#frm"));
function getelementval(frm) {
return frm.textbox.val();
}
</script>
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?