I have a table, in one of the columns I have a textbox and a div with an onClick event on top of the textbox, div opens(expands) and then when the image in it is selected, or if the user clicks anywhere else on the page, it gets closed.
The problem is, if I open multiple rows and open that div in each column, I want all the other divs to get closed automatically, like it happens in the "accordion". How to do it through jquery?
<ul class="ul_color_palette" >
<li><img src="img/color_palette/ico_red_sq.png"/> <img src="img/color_palette/ico_blue_sq.png"/></li>
<li><img src="img/color_palette/ico_red_circle.png"/> <img src="img/color_palette/ico_blue_circle.png"/> </li>
<li><img src="img/color_palette/ico_red_tri.png"/> <img src="img/color_palette/ico_blue_tri.png"/></li>
</ul>

Link Here