this is probably because your selector returns no object. show the html code you run your script against, to be able to properly diagnose.
On Mon, Mar 9, 2009 at 11: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 >