Why is .index() resolving as a number in this statement while .parent().index() is resolving as a string?
<p>Here is the code, it is referencing a TD and "farmland" is the id of the table:</p>

<pre><code>$("#farmland td").click(function(){
        $("#console").html($(this).index() + 1 + ", " + $(this).parent().index() + 1);
    });
</code></pre>

<p>When I click a TD, I am getting 1,01 or 1,11 or 1,21 etc... the number is properly adding for .index() but for .parent().index() it is appending the 1 as if it is a string!</p>

<p>Thought this was very curious, as I expected it to either act one way, or the other, not two different ways!</p>

<p>My first guess may be that it's because my <code>+ ", " +</code> is switching it to work as a string?</p>
