Correct way to use fluent syntax in jQuery
<p>If I write</p>

<pre><code>$month.find('.d-row').attr('id', 'myid');
</code></pre>

<p>I don't get intellisense in Visual Studio for <strong>.attr(...)</strong> indicating that the syntax is not quite right.</p>

<p>if however I write :</p>

<pre><code>$($month.find('.d-row')).attr('id', 'myid');
</code></pre>

<p>I get intellisense, indicating this is the correct way to write this</p>

<p>However, both syntaxes work fine, im assuming it is correct to use the second way, is this right &amp; why do both work?</p>
