jquery - How get value from iframe? -


i have page test.php

when click on button on page upload iframe in popup fancybox.

iframe have select.

i when change value in select original page value select iframe.

i make:

$(function() {    $("#select").on('change',function() {       $('.tk').val($(this).val()); // original page have <input type="text" class="tk">       parent.$.fancybox.close();    }); }); 

but value of select not transmitted input in page...

how make this?

p.s.: $(window.top).find(".tk").val($(this).val()); not work...


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -