In the code below, I changed show() to css() and changed the visibility. For some reason, it does not appear on the screen.
Here is the HTML:
<td class="area"> <img src="/def.jpg" /> </td> <tr id="target" style="visibility:hidden"> <td>This was hidden</td> </tr>
and then jQuery:
$("td.area").on("click", "img", function(){ $("tr:hidden#target").css("visibility","visible"); });
source share