#173 ✓help_request
Tom Cocca

this.up not working in IE 6 or 7

Reported by Tom Cocca | June 18th, 2008 @ 05:54 PM

I was trying to use the following (in a rails Application):

...

<%= link_to_function "remove", "this.up('.multi_record').remove()" %>

This is used in a form to keep adding sets of questions, phone numbers etc ...

Works perfect in FF but does not work in IE.

The following does work though

<%= link_to_function "remove", "$('#{placed_item.id}').up('.multi_record').remove()", {:id => "#{placed_item.id}"} %>

Any ideas why this.up is not working in IE?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages