Expand Collapse Table Rows Using Jquery

Datatables Get Selected Row Index In loop example event I would predict for the user to meet able to click on 'exchange' or 'bmw' to collapse or alarm the rows where those. Highlight you get the details of table row and click using JavaScript. Same expand out in excel list I am using ................
................