Append data to each class
<p>I am creating an event calendar and right now i want to display data from server to each date and time. My code is working if only one entry exists into data base but not for more than one. Here is my code.</p>

<pre><code>    $.each($(".hour"), function(){
        if($(this).attr("data-date") == data.dDate &amp;&amp; $(this).attr("data-time") == data.fromHour)
        {
            $(this).append(data.dDate);
        }
    });
</code></pre>

<p>Any suggestions?
Thanks</p>
