Hi,

I have a problem with observe, since upgrading to Prototype 1.6
in the old version getElementByClassname was used instead of select
I have the following js which purpose is to add a blur event on every
input element within a div

// select divs with class="tasks"
var tasks = $$('.tasks');
tasks.each(function(task) {
  var hours = $(task).select('.hours');
  alert(hours); // this says [HTMLInputElement]
  $(hours).observe('blur', function(e) { alert('blurred'); });
}

the line with the observe gives a $(hours).observe is not a function
anyone got an idea why this is not working?

Thanks,
Gertjan



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to