hide/ show next sibling of an element node

hide/ show next sibling of an element node

i do have a div tag and a panel inside template field of grid view.
after clicking the div tag the panel should be shown if it is hidden and vice-versa