I need help finding all elements within an iframe that contain a specific word, for example, 'stack' on this page: http://en.wikipedia.org/wiki/Stack_Overflow
Here is the code I am currently using:
<body>
<iframe src="http://en.wikipedia.org/wiki/Stack_Overflow"></iframe>
</body>
<script type="text/javascript">
var iframe = $('iframe');
$( "iframe" ).contents().find( "stack" ).css( "background-color", "#BADA55" );
</script>
I have also added CSS and other elements to make the page complete, as well as included the jQuery library.
However, the code is not functioning as expected - no elements are being selected and the CSS is not being applied. Can anyone identify where the issue lies? Thank you!