I solved it by doing like this:
$('#filecontainer').load(function(){
var iframe = $('#filecontainer').contents();
iframe.find("#choose_pics").click(function(){
alert("test");
});
});
More Related Contents:
- Get DOM content of cross-domain iframe [duplicate]
- Reload an iframe with jQuery
- How to clear the contents of an iFrame from another iFrame
- How can I detect whether an iframe is loaded?
- How do I remove tinyMCE and then re-add it?
- Attach an event in a child iframe to a handler in the parent window
- Set content of iframe
- putting html inside an iframe (using javascript)
- how to block website from loading in iframe?
- Change iframe src by clicking a link
- how to resolve iframe cross domain issue [duplicate]
- Iframe.readyState does not work in chrome
- How to detect a click inside of an iframe (cross-domain)? Aka prevent click fraud
- Insert content into iFrame
- Trigger a button click inside an iframe [duplicate]
- get parent.location.url – iframe – from child to parent
- make readonly/disable tinymce textarea
- iframe Auto Adjust Height as content changes
- Iframe inherit from parent
- .val() don't edit input
- jquery get id of input selected text
- jQuery Data vs Attr?
- jQuery ID selector works only for the first element
- Cross-browser multi-line text overflow with ellipsis appended within a fixed width and height
- How to style “input file” with CSS3 / Javascript? [duplicate]
- How to get nth-child selector to skip hidden divs [duplicate]
- Search and Highlight in jQuery
- Is it possible to add html inside a title attribute?
- Trigger standard HTML validation (form) without using submit button? [duplicate]
- How to keep elements non-refreshed