jQuery - Having a problem with $(this).find(".event_recur").html()
Posted
by Fostah
on Stack Overflow
See other posts from Stack Overflow
or by Fostah
Published on 2010-06-15T18:15:27Z
Indexed on
2010/06/15
18:22 UTC
Read the original article
Hit count: 164
jQuery
|jquery-selectors
Hello,
I am trying get the html within .event_recur.
$(".entry").each(function(){
alert($(this).find(".event_recur").html());
});
<div class="entry">
<p class="event_title">June 21st Event - eat</p>
<p class="event_start_date">1277160289</p>
<p class="event_end_date">1277505889</p>
<p class="event_body"><p>June 21-25th
</p></p>
<p class="event_recur"><p>No
</p></p>
<p class="event_body"><p>June 21-25th
</p></p>
<p class="event_location"><p>Pac Sun
</p></p>
<p class="event_categories">
Eat
</p>
</div>
I get nothing when I do:
$(".entry").each(function(){
alert($(this).find(".event_recur").html();
});
I was expecting:
<p>No
</p>
Am I missing something? Thanks!
© Stack Overflow or respective owner