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?
Sam Collet:
$('.manytomany select:eq(' + i + ')').remove()
as .get() does not return a jQuery object but a DOM element.