Hi

The following produces different results on Firefox and IE7, any idea
why?

HTML:
<input name="test" type="text" onchange="dosomething(this)" />
<div>nothing special</div>

JS:
function dosomething(element) {
   var test = element.next('div');
}

With Firefox it works as supposed, test contains the DIV. On IE7,
however, the line inside the function throws a "Object does not
support method" error.

Thanks for your wisdom and patience!
-sven

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to