Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Remove all list items

Hi,

I want to completely remove all items from a list irrespective of what the list item contains. I have tried all of the following without success. What is the correct method.

Regards
Joe

$('mylist').empty();
Tiggr('mylist').listview('refresh');

Code: Select all

$("mylist").children().remove();  
Tiggr('mylist').listview('refresh'); 

 $('mylist').html(''); 
  Tiggr('mylist').listview('refresh');
Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Remove all list items

Hi,

Sorry I missed Tiggr('mylist').empty(); Its woorking fine now!

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Remove all list items

Hi,

Sorry I missed Tiggr('mylist').empty(); all is well now!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Remove all list items

Yes, correct:) but it's better to refresh list after you delete item

Tiggzi("mylist").empty().selectmenu("refresh");

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Remove all list items

Tiggzi("mylist").empty().listview("refresh");

Return to “Issues”