Open a hidden div when checkbox is checked
I am trying to open a new window (hidden div) when a checkbox is checked. Right now the way i have it is it is opening when the checkbox is clicked instead of checked. I have been trying to figure it out for a few hours now and just hoping somebody can help a jquery newbie.
Here is my code in case someone wants to take a look.
$(document).ready(function() {
$('#imgFiche')
// ($(this).attr('checked')){
.attr('target', '_blank')
.click(function(e){
e.preventDefault();
$.nyroModalManual({
width: 466,
height: 414,
cssOpt:{wrapper2:{overflow:'hidden'}},
url: $(this).attr('open')
});
return false;
})
//}
});