jQuery questions that I came across while learning (beginner)
<ol>
<li><p>what is domEle in this example? I can see an explanation in jQuery.com - jQuery.each( collection, callback(indexInArray, valueOfElement) ), but still is hard to understand for me what is "valueOfElement"? Can anybody clear a bit this for me?</p>

<pre><code>$("button").click(function () {
  $("div").each(function (index, domEle) {
    $(domEle).css("backgroundColor", "yellow"); 
    if ($(this).is("#stop")) {
      $("span").text("Stopped at div index #" + index);
      return false;
    }
  });
});
</code></pre></li>
<li><p>if I will write like this: <code>$("input[name='newsletter']").next().text(" is newsletter");</code>  jquery will find only exact match and if I write like this: <code>$("input[name$='newsletter']").next().text(" is newsletter");</code> jquery will find exact match and lets say value of "newsletters" too?</p></li>
<li><p>Author uses this code:</p>

<pre><code>$(document).mouseup(function(e) {
            if($(e.target).parent("a.signin").length==0) {
                $(".signin").removeClass("menu-open");
                $("fieldset#signin_menu").hide();
            }
        });      
</code></pre>

<p>to hide the drop down whenever user presses anywhere else on the document. Can anybody comment on this line   <code>if($(e.target).parent("a.signin").length==0) {</code> as I do not fully understand what we are doing in here. Original article in here: <a href="http://aext.net/2009/08/perfect-sign-in-dropdown-box-likes-twitter-with-jquery/" rel="nofollow">http://aext.net/2009/08/perfect-sign-in-dropdown-box-likes-twitter-with-jquery/</a></p></li>
<li><p>A default method call that I should be aware of?</p></li>
</ol>

<p>In one of the tutorials I found such comment:</p>

<p>"Finally, if we don’t include a margin in the CSS, the result of the CSS method call is auto, which won’t parse properly, so we need to replace the text “auto” with the number 0"</p>

<pre><code>var top = $('#comment').offset().top - parseFloat($('#comment').css('marginTop').replace(/auto/,0));
</code></pre>

<p>Can anybody comment on this as I do not fully understand what he is doing in here.</p>

<p>Original article in here: <a href="http://jqueryfordesigners.com/fixed-floating-elements/" rel="nofollow">http://jqueryfordesigners.com/fixed-floating-elements/</a></p>
