Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

remove the table inside div using jquery

$
0
0

Dear all,

I have a sharepoint 2013 site and enabled metadata navigation.I want to remove some columns in navigation using jquery.I have checked in developer tool i found div inside tables now i want to delete complete table.Using below code i can able to delete first and last columns but i want to delete the second or third columns.How to implement this please help.Thanks in advance.

 $('#ctl00_PlaceHolderLeftNavBar_ctl04_WebTreeViewn0Nodes').find('table').first().find('tr').first().remove()

 $('#ctl00_PlaceHolderLeftNavBar_ctl04_WebTreeViewn0Nodes').find('table').last().find('tr').last().remove()


 

Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>