Page 1 of 1

Hide/Remove List Items

Posted: Tue Jun 09, 2015 8:27 pm
by Aeneas McBurney

I have this code that works to hide empty list items

list.find("[name=mobilegridcell_255]:contains(emptylabel)").closest('[name=listPreviousInvoicesItem]').hide();

This hides the last row which contains an unmapped list item. However when I run the same for remove it removes all of the list items

list.find("[name=mobilegridcell_255]:contains(emptylabel)").closest('[name=listPreviousInvoicesItem]').remove();

Can you tell me why?


Hide/Remove List Items

Posted: Fri Jun 12, 2015 1:08 pm
by Serhii Kulibaba