I have on the page several text input tags. How to find which input tag focused ? Or how to observe all input tags at once ? I've tried:
Event.observe($('divID').getElementsByTagName('input'), 'focus', function(event) { } ); // invalid parameter and Event.observe(document.body, 'focus', function(event) { } ); // dont fire at all and $('divID').getElementsByTagName('input').each( function(content) { Event.observe(content, 'focus', function(event) { } ); }); with no ant result. Hope you catch my logic ! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---