Team:TU Delft/test

From 2010.igem.org

(Difference between revisions)
Line 857: Line 857:
<script>
<script>
-
testhtml = '<div id='test'>asdf</div><div id='test2'>qwer</div><span class="mw-headline">Most viewed pages</span></h2>  
+
var testhtml = '<div id='test'>asdf</div><div id='test2'>qwer</div><span class="mw-headline">Most viewed pages</span></h2>  
<ul><li> <a href="/Main_Page" title="Main Page">Main Page</a> (168,098)
<ul><li> <a href="/Main_Page" title="Main Page">Main Page</a> (168,098)
</li><li> <a href="/About" title="About">About</a> (16,058)
</li><li> <a href="/About" title="About">About</a> (16,058)
Line 870: Line 870:
</li></ul>';
</li></ul>';
-
var foundit = $(testhtml).('*:contains("Team:TU_Delft")');
+
var foundit = $(testhtml).find("span");
alert(foundit);
alert(foundit);

Revision as of 10:37, 14 October 2010

Loading...