Jquery iframe with Modal Window pass parameter

Hello I have a problem when I modify the input of a iframe that is open with SimpleModalWindow Plugin.

I have the code:

 $  ("#imgTab").click(function(){
    $  ("#iframeNode").contents().find("input[name='objParent']").val('val1');
    $  ("#modalWindow").modal({
    overlayCss: {backgroundColor:"#fff"}

the iframe is in a div

    <div id="modalWindow" style="display:none;background-color:#FFFFFF">
    <iframe src="biblioteca.php" height="600px" width="900px" id="iframeNode" name="iframeNode"></iframe>

And the element to modify into the iframe is:

<input type="text" name="objParent" id="objParent"/>


newest questions tagged jquery – Stack Overflow

About Admin