Snippet:
<div id="r1242">
<img class="trans" src="http://sakshamcomputer.com/images/printerLogo.jpg"/>
<div class="labels" id="p1242">
<strong>Available Printers:</strong><br><br>
Lanier LD075 Rm1242<br><br>
Rm1242_Ricoh_Aficio_MP_7502
</div>
</div>
CSS Code:
#r1242 #p1242 {
display:none;
}
JQuery Code:
$('div .trans').click(
function() {
$('#p1242').css("display","block");
}
});
I am looking to use JQuery to adjust the "display" property in my CSS code. I have experimented with different selectors for the element, like "$('#r1242 #p1242')" and "$('# p1242')". What is the correct way to change the display value using JQuery?