To hide/show area of web page without re-loading a page
You can simply show and hide by changing style.display property.By calling below javascript function from the header row of your table,you can make your table collapsible. Following is HTML body calling above function.