On 9/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> how can i test if a object is in the dom without a js alert=
>
> for example
>
> $("filter_sum").value;
>
> in my example sometimes 'filter_sum' is missed and i must check it
>
var f = $('filter_sum');
if (f) {
// "filter_sum" exists
f.value;
} else {
// "filter_sum" dosn't exist
}
Yours,
Nicolas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---