Skip to main content

Bug Tracker

Side navigation

#83 closed bug (fixed)

Opened July 21, 2006 04:04PM UTC

Closed July 21, 2006 04:12PM UTC

Last modified June 20, 2007 02:49AM UTC

$('document').get(x).remove(); doesn't work

Reported by: anonymous Owned by:
Priority: major Milestone:
Component: core Version:
Keywords: Cc: rails@advany.com
Blocked by: Blocking:
Description

Having some problems getting remove to work, when I do

$('.manytomany select').get(nr).remove(); doesn't work, but

$('.manytomany select').get(nr).hide(); works fine.

$('.manytomany select').remove(); works fine to..

Its a bit strange I am trying to inspect it, could someone give more insight into it?

Attachments (0)
Change History (3)

Changed July 21, 2006 04:06PM UTC by anonymous comment:1

cc: → rails@advany.com

Changed July 21, 2006 04:12PM UTC by anonymous comment:2

Sam Collet:

$('.manytomany select:eq(' + i + ')').remove()

as .get() does not return a jQuery object but a DOM element.

Changed July 21, 2006 04:12PM UTC by anonymous comment:3

resolution: → fixed
status: newclosed