I also have a question about $F()  while we are on the topic.. 

am I correct in assuming that $F()  is read only? 

I have never been able to set a forms elements value using 

$F('name')="Alex"  

I have always had to use 

$('name').value = "Alex"


______________________________________________________________________

Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com 




On 2-Mar-06, at 8:22 AM, 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.

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?

Thanks,
Mandy.
_______________________________________________
Rails-spinoffs mailing list

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to