How to capture exact td value in jquery independent of browser
<p>I have li inside it i contain td. </p>

<pre><code>        var values = '';
        $("#list4 li.add table .mytd").each(function () {
            values = $(this).html() + '|' + values;
        });
                 document.getElementById("MainContent_uscRetailParameters_hdRetailCustomerGroup").value = values;
        __doPostBack('&lt;%=txtRCCode.ClientID%&gt;', '');
</code></pre>

<p>when I capture in hidden field it come like this</p>

<pre><code> [alot of spaces]CHARMINSENSITIVE-1
</code></pre>

<p>with lot of spaces how can i retrieve the exact value in all browser. this space not found in Internet explorer. but in firefox it comes with spaces how could i capture the exact td value.</p>

<pre><code>   string lvValues = hdProductGroup.Value;
   //string trim = lvValues.Replace(" ", "");
    string trim = lvValues.Replace("\r", "");
    trim = trim.Replace("\r", "");
    trim = trim.Replace("\n", "");
    trim = trim.Replace("\t", "");

    string str = trim;
    string[] list = str.Split('|');
</code></pre>
