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

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -