I would like to make a control that can just be dropped in a table to hide or show all rows which the control is not in. Im working on an old app that uses lots of explicit javascript functions to do this per IDs of elements, but wanted to see if it was possible to do with a little jquery. Below links to how you would hide rows of a table but how would you access that table from the child element?
I would likely have it as a .net user control, where the jquery would reside, with a hidden field to preserve weather or not the item is set to show or hide on postback, or to explicitly do so based on serverside logic/data. I am kind of new to jquery so any help would be greatly appreciated.
Thanks!!
Try closest(“table”)