Hello all,
I have a unorder list with nested list( Parent and Children List) something like this:
Category1
Subcat1
Subcat2
Subcat3
Category2
subcat1
subcat2
subcat3
I want to create a delete function where if I click on Edit button all the list elements should get checkbox and then I can select one or multiple checkbox and when I can click on delete button it should delete selected items.
Function:
1. Need two buttons edit and delete.2. When click on edit, all the list item should show checkbox to select the any particular item.3. On selecting one or multiple item from list when click on delete button those item should be deleted from list.4. If I select the parent item e.g. category1 and delete it, then all the child items(subcat) should also be deleted.
Please help!!!