Page 1 of 1
Remove all list items
Posted: Wed Feb 13, 2013 10:57 am
by Joe Bohen
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');
Remove all list items
Posted: Wed Feb 13, 2013 1:00 pm
by Joe Bohen
Hi,
Sorry I missed Tiggr('mylist').empty(); Its woorking fine now!
Remove all list items
Posted: Wed Feb 13, 2013 1:01 pm
by Joe Bohen
Hi,
Sorry I missed Tiggr('mylist').empty(); all is well now!
Remove all list items
Posted: Wed Feb 13, 2013 1:05 pm
by Maryna Brodina
Yes, correct:) but it's better to refresh list after you delete item
Tiggzi("mylist").empty().selectmenu("refresh");
Remove all list items
Posted: Wed Feb 13, 2013 1:07 pm
by Maryna Brodina
Tiggzi("mylist").empty().listview("refresh");