Testcase for jQuery Ticket 4179

bind focus to element in iframe

by jitter

HTML

<p>Click into the text input where it says "Library tag attributes"</p>
<iframe src="http://fiddle.jshell.net" height="500px" width="500px" />

JavaScript

//wait for iframe to load else binding of course fails
$("iframe").load(function() {
    var iBody = $("iframe").contents().find("body");
    $("#id_js_lib_option", iBody).focus(function() {
        alert("hello");
    });
});