<div>
p - div
</div>
.
and I changed the source code, upset the <div> and
, and the
selector $('p > div') → $('div > p'):
************************************************************************************
<head>
<title>Untitled</title>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
<!--
$(function () {
var $d = $('div > p');
$d.css('border', '1px solid gray');
});
//-->
</script>
</head>
<body>
<div>
div - p
inside <div>.
Who can tell me why?