checking table rows in Javascript
<p>I'm using this JS function to dynamically add labels to a table, this function is called from a combo box selection index change, when user selects a new item, it should be added to label, I'm going to check current values of table (i.e. rows of table) and only add the new item if it is new, what should I do? how can I check existing items (labels) of table?</p>

<pre><code>var spanTag = document.createElement("span");
        spanTag.id = document.getElementById('cmbDestinationUser').selectedIndex.toString();

        var e = document.getElementById("cmbDestinationUser");
        var strUser = e.options[e.selectedIndex].text;
        spanTag.innerHTML = strUser;
        var TR = document.createElement('tr');
        var TD = document.createElement('td');
        TD.appendChild(spanTag);
        TR.appendChild(TD);

        document.getElementById('tblReceivers').appendChild(TR);
</code></pre>

<p>thanks</p>
