I have a form inside an iframe that needs to be manipulated from the main frame.
An IFrame is viewed when it pops up when a button is clicked in the main frame. It then contains a upload form with a hidden field called dir.
I want to set a hidden field before showing the form. I tried:
$('#upload_iframe').contents().find('#dir').val(dir);
... which is being executed. And the new value can be printed using alert () in the main frame. However, the iframe does not change its value. Can you help me understand why?
Thanks!
source
share