try $(li)[0].remove();

 

or

 

$(li[0]).remove();
 
> Date: Mon, 9 Mar 2009 03:53:47 -0700
> Subject: [jQuery] How to remove li inside UL
> From: nirajke...@lucent.com
> To: jquery-en@googlegroups.com
> 
> 
> 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

_________________________________________________________________
All your Twitter and other social updates in one place 
http://clk.atdmt.com/UKM/go/137984870/direct/01/

Reply via email to