What is the difference between those two statements?
<p>What is the difference between those two statements?</p>

<p>A:</p>

<pre><code>$(document.getElementById('timer-' + endTimes[i].nid)).removeClass('hidden-timer').text('');
</code></pre>

<p>B:</p>

<pre><code>$('#timer-' + endTimes[i].nid).removeClass('hidden-timer').text('');
</code></pre>

<p><strong>[EDIT]</strong></p>

<p>Thanks for all responses.</p>

<p><code>endTimes[i].nid</code> is numeric, ex <code>340</code>.</p>

<p>The most important difference for me was that line A is causing a WSOD, but line B works fine.</p>
