Searching for an image element whose src contains a keyword, in an iFrame's HTML using jQuery -
I am digging deep into the DOM of a page to manipulate a certain image feature. I have a web page that has iFrame. I have a image in itframe. The image does not have any id feature, so I'm going to find it using SRC. The source contains the unique keyword 'planet'. How can I find out the picture using jQuery?
Extra:
I can not reference anything in IFrame's domes. Is there any special way to reference the element inside the IFrame?
Example: Warning ($ (myIframe). Find ('html'). Length) 0, expectation 1.
I do not think iframe can manipulate content, if iframe's domain is not one, then you There is no control over.
Edit: Since you said that it is now from the same domain, $ ('# id'). material (). ('A') should be searched
.
Comments
Post a Comment