I have page test.php
when i click on button on this page upload iframe in popup fancybox.
Iframe have select.
I would like that when i change value in select original page get value this select from iframe.
I make:
$(function() {
$("#select").on('change',function() {
$('.tk').val($(this).val()); // original page have <input type="text" class="tk">
parent.$.fancybox.close();
});
});
but the value of select not transmitted input in the page...
How make this?
P.S.: $(window.top).find(".tk").val($(this).val());
not work...