Here's something else. It used to work with "latest"
<http://jquery.com/src/latest/> but fails with 1.0; both on Safari and FF,
this time.

See it at
  http://www.jquery.info/IMG/html/2_dom.html (with latest, you see "coucou")
  http://www.jquery.info/IMG/html/2_dom_1.0.html (with 1.0, no "coucou")

>>>>>>>>>>>>>>>>>
<html>
<head>
  <script src="http://jquery.com/src/jquery-1.0.js"; 
type="text/javascript"></script>

<script type="text/javascript"><!--
  $(document).ready(function () {
    $("#texte/p:nth-child(1)").prepend("<div>coucou!</div>");
  });
// --></script>
</head>

<body>

<div id="intro">Ici, l'introduction</div>


<div id="texte">

        <p>Ici, premier paragraphe de #texte</p>

        <p>Ici, deuxi&egrave;me paragraphe de #texte</p>

        <p>Ici, troisi&egrave;me paragraphe de #texte</p>

        <p>Ici, quatri&egrave;me paragraphe de #texte</p>

</div>

<a href="http://www.jquery.info/spip.php?article2";>(article)</a>

</body>
</html>


-- Fil


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to