In our application, we parse a web page and load it into another page in an iframe. All the elements in that loaded page have their token IDs. I need to select the elements by those token IDs. Means - I click on an element on the main page and select corresponding element in the page in the iframe. With the help of jQuery I m doing it in the following way:
function selectElement(token) {
$( [tokenid= + token + ] ).addClass( border );
}
但是,这一职能是 我只能选择本页的内容,而不是在iFrame。 没有人告诉我,我如何能够选择装满的iFrame中的内容?
感谢。