On 3/2/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote:
On Thursday 02 March 2006 08:22, Maninder, Singh wrote:
> Hi Guys,
>
> Maybe this is a stupid question, but I am confused at the moment.
>
> The $F() function is a handy shortcut to get the value of the an input
> field.
>
> So, doing something like $F('name') is equivalent to
> document.formname.name.value which is pretty cool.
no, it's actually more like:
document.getElementById('name').value
> Now, what if I have 2 forms on the page, that same field name "name"?
> What would $F return? It does not take the form name - right?
it doesn't work based off the 'name' attribute of the form field, it works
based off the element's id.
-Jeremy
--
Jeremy Kitchen ++ [EMAIL PROTECTED]
In the beginning was The Word and The Word was Content-type: text/plain
-- The Word of Bob.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs