You might find #invoke [1] useful in this case: $('divId').select('input[type=text]').invoke('observe', 'focus', function(e) { ... });
[1] http://prototypejs.org/api/enumerable/invoke - kangax On Jun 15, 12:34 am, mocambo <[EMAIL PROTECTED]> wrote: > My mistake ! Solved ! > > $('divID').select('input[type=text]').each( function(e) { > Event.observe(e, 'focus', function(event) { }); > > }); > > Thank You ! :) > > On Jun 15, 7:09 am, mocambo <[EMAIL PROTECTED]> wrote: > > > OK, solved for now: > > > $('divID').select('input', '[type="text"]').each( function(e) { > > Event.observe(e, 'focus', function(event) { }); > > > }); > > > Only problem still occur: > > > select gives me all 'input' elements but needed only those with > > type="text". What wrong above ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---