Jquery: change input file value inside an iframe

I have a page where there is an input file. In this page there also is an iframe that contains another input file. So, when the input file in main page changes, I want that the input file inside iframe also changes its value to the value of external input file. But it doesn't work, i use this code in main page: $('#iframe').contents().find('#input_file').val(myvalue); The value of `#input_file` file remains empty. What could be the problem

以上就是Jquery: change input file value inside an iframe的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准