Bug Tracker

Ticket #5469: select.2.html

File select.2.html, 753 bytes (added by fforw, 4 years ago)

same test using find, not working either..

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6<title>jQuery Selector Test</title>
7
8<script type="text/javascript" src="script/jquery-1.3.2.js">
9</script>
10
11<script type="text/javascript"><!--//--><![CDATA[//><!--
12
13$(function()
14{
15        var $tst = $("#tst");
16
17        var $span = $tst.find(".foo span");
18
19        $(document.body).append($span.length ? "<p>SPAN found!</p>" : "<p style=\"color: red;\">SPAN NOT found!</p>");
20   
21});
22
23//--><!]]></script>
24</head>
25<body>
26
27<div id="tst" class="foo">
28        <span>xxx</span>
29</div>
30
31</body>
32</html>