Selector for element inside a frame (with same origin)

后端 未结 2 1947
不思量自难忘°
不思量自难忘° 2021-01-12 12:15

I have a webpage with the following structure:


...


&         


        
相关标签:
2条回答
  • 2021-01-12 12:41

    yeah I got it. thanks.

    This is what I wrote.

    $("div[id='test'] > span",frames['frame1'].document).text()
    
    0 讨论(0)
  • 2021-01-12 12:45

    Try:

    $("div#test", $("#someIFrame").contents())
    
    0 讨论(0)
提交回复
热议问题