how to Detect Click inside iframe
Dear All
My Code
- var iframesrc='imageeditingslider.php?id='+thisid;
- $('#categorylist').html( '<iframe id="datamain" src="'+iframesrc+'" width="100%" height="600" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>' );
- });
This code creates a iframe.
.showallediting -> contents has this class
I am tried following code
- $('#tdatamain').contents().find(".showallediting").click(function(){
-
- alert('clicked img');
- }
please please help