jquery - Prettyphoto and event click on iframe -


uui'm trying detect click event inside iframe. found (not working) solution on so, , wasn't able fix them , them working on code.

how can detect target of click event inside iframe?

since prettyphoto loaded

$("a[rel^='prettyphoto']").prettyphoto(); 

i hoping solution similar to

$("a[rel^='prettyphoto']").prettyphoto(      $('#myframe').bind('click', function(event) {           alert("cliked");      }) ); 

but doesn't work. idea?

use .on()

$('#myframe').on('click', function(event) {        alert("cliked"); }) 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -