How about:

var first_paragraphs = $('#book div.page p:first');

Joel.

On 06/06/2007, at 12:34 AM, Sebastián V. Würtz wrote:

How i get the first p of each div page inside the id book?

This not work
$('#book .page').each(function(index) {
 var first_paragraph = $(this + " p").eq(0);

<div id="book">
 <div class="page">
  <h1>xxxxxxx</h1>
  <p>cccccccc</p>
  <p>dddddd</p>
 </div>
 <div class="page">
  <h1>asdasdas</h1>
  <p>cccccccc</p>
  <p>tttttttt</p>
 </div>
 <div class="page">
  <h1>2222222</h1>
  <p>cccccccc</p>
 </div>

</div>


thx

Estoy utilizando la versión gratuita de SPAMfighter para usuarios privados.
Ha eliminado 2470 correos spam hasta la fecha.
Los abonados no tienen este mensaje en sus correos.
¡Pruebe SPAMfighter gratis ya!

Reply via email to