Team:TU Delft/test

From 2010.igem.org

(Difference between revisions)
Line 857: Line 857:
<script>
<script>
-
var testhtml = '<span class="mw-headline">Most viewed pages</span>';  
+
var testhtml = '<span class="mw-headline">Most viewed pages</span><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="/Team:TU_Delft" title="Team:TU Delft">Team:TU Delft</a> (13,454) </li>';  
-
var foundit = $(testhtml).find("span").text();
+
var foundit = $(testhtml).("div:contains('Team:TU_Delft')").html();
alert(foundit);
alert(foundit);

Revision as of 10:44, 14 October 2010

Loading...