Get the text of div of div
<p>Here is the code up to now. i want to access the value 1 of the <code>&lt;div class="field-item even"&gt;1&lt;/div</code>>, and then if the value is 1 add a class, if the value is 0, add a another class. My code only access the first field-collection-container, i can't figure it out the problems.</p>

<pre><code>$(document).ready(function () {  
        jQuery.each($('.field-collection-container'), function (i, obj) {
            alert($(this).find('.field-items .content .field-item').text());
        })

});
</code></pre>

<p>the html</p>

<pre><code>&lt;div class="container"&gt;
&lt;div class="field-collection-container clearfix"&gt;
    &lt;div class="field field-name-field-interview-feeling field-type-field-collection field-label-above"&gt;
    &lt;div class="field-label"&gt;TEXT&lt;/div&gt;
        &lt;div class="field-items"&gt;
        &lt;div class="field-item even"&gt;
            &lt;div class="field-collection-view clearfix view-mode-full field-collection-view-final"&gt;
                &lt;div class="entity entity-field-collection-item field-collection-item-field-interview-feeling clearfix" about="/dtesthkinterview/field-collection/field-interview-feeling/4" typeof=""&gt;
                  &lt;div class="content"&gt;
                    &lt;div class="field field-name-field-19 field-type-list-boolean field-label-above"&gt;
                        &lt;div class="field-label"&gt;TEXT&lt;/div&gt;
                        &lt;div class="field-items"&gt;
                            &lt;div class="field-item even"&gt;1&lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="field field-name-field-no-people field-type-list-boolean field-label-above"&gt;
                        &lt;div class="field-label"&gt;TEXT&lt;/div&gt;
                        &lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;0&lt;/div&gt;&lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="field field-name-field-untrust field-type-list-boolean field-label-above"&gt;
                        &lt;div class="field-label"&gt;TEXT&lt;/div&gt;
                        &lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;0&lt;/div&gt;&lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="field field-name-field-waste-money field-type-list-boolean field-label-above"&gt;
                        &lt;div class="field-label"&gt;TEXT&lt;/div&gt;
                        &lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;0&lt;/div&gt;&lt;/div&gt;
                    &lt;/div&gt;  
                  &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;div class="field-collection-container clearfix"&gt;
.....
&lt;/div&gt;
&lt;div class="field-collection-container clearfix"&gt;
.....
&lt;/div&gt;
</code></pre>

<p></p>
