'li' is an object not an array, so you cannot use [] to select an
element.  Look at the jQuery docs under 'traversing' for your possible
choices ( e.g., eq() )


On Mar 9, 6:53 am, niraj <nirajke...@lucent.com> wrote:
> Hi,
>
> I want to remove selected list items from a UL. Can i do using remove
> ().
> I get an error when i get a list of items:
>
> var li = $('.items');
> li[0].remove();
>
> I am getting error li[0].remove() is not a function in Mozilla Firefox
> firebird debugger.
>
> ~nk

Reply via email to