How to append an int to the end of a string argument for getElementByID() : <p>I need to know how to append an integer to the end of an argument of type string for the getElementByID method... in this example latest==2. And i want to search for the id "number2".  </p>

<pre><code>number=document.getElementById("number"&amp;latest);
</code></pre>

<p>This current syntax is giving me issues.</p>

<p>Additionally, if i want to dynamically insert HTML, how would one go about inserting that value into the data field for a label</p>

<pre><code>cell1 = row.insertAdjacentHTML('beforeend',&lt;span&gt;&lt;label for="2" id="label2"&gt;2&lt;/label&gt;&lt;/span&gt;
</code></pre>

<p>All the "2"'s here should be dynamic, like if i were to reference a global counter n... </p>
