Bug Tracker

Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#83 closed bug (fixed)

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

Reported by: anonymous Owned by:
Priority: major Milestone:
Component: core Version:
Keywords: Cc: [email protected]
Blocked by: Blocking:


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?

Change History (3)

comment:1 Changed 17 years ago by anonymous

Cc: [email protected] added

comment:2 Changed 17 years ago by anonymous

Sam Collet:

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

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

comment:3 Changed 17 years ago by anonymous

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.