jQuery - Having a problem with $(this).find(".event_recur").html() -
I'm trying to get html in .event_recur.
$ (". Entry"). Find each (function () {alert ($ (this). (". Event_recur") .HTML ());}); & Lt; Div class = "entry" & gt; & Lt; P class = "event_title" & gt; June 21 Events - Eat & lt; / P & gt; & Lt; P class = "event_start_date" & gt; 1277160289 & lt; / P & gt; & Lt; P class = "event_end_date" & gt; 1277505889 & lt; / P & gt; & Lt; P class = "event_body" & gt; & Lt; P & gt; June 21-25 & Lt; / P & gt; & Lt; P class = "event_recur" & gt; & Lt; P & gt; No & lt; / P & gt; & Lt; / P & gt; & Lt; P class = "event_body" & gt; & Lt; P & gt; June 21-25 & Lt; / P & gt; & Lt; P class = "event_location" & gt; & Lt; P & gt; Pac Sun < / P & gt; & Lt; / P & gt; & Lt; P class = "event_categories" & gt; Eat & lt; / P & gt; & Lt; / Div & gt;
I do not get anything when I do:
$ (". Entry"). I was expecting:
Code>
Am I missing something? Thanks!
Try wrapping your work such as:
$ (function () {$ (".entry") Each (function ($ (this) .find (". Event_recur") .HTML ());});});
until the DOM loads Delay execution.
Comments
Post a Comment