How do I stop my JS from erring if I call an element that does not
exist.
I have a form that is dynamically generated on the server (PHP)
I have a script that calls $F('foobar') but it might be the case that
that field does not exist.
I tried doing
if($F('foobar'))
But even that throws an error..
Thanks..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---