title: Display only certain columns in a table
body: <p>Been searching for answers but finding none. I have a code that displays a table pulled from a server-side genqueuesearch.php based on a parameter "rg1". Each row has a column called Queue with an "rg1" string in it. The table has several columns but my challenge is displaying only 4 columns. Here is my AJAX code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script language="Javascript"&gt;
     function View(){
     ...
        xmlhttp.onreadystatechange=function(){
           if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200){
              document.getElementById("datatable").innerHTML=xmlhttp.responseText;    
           }
        }
  
        var parameters = "search="+"rg1";
        xmlhttp.open("POST", "http://drcsblr0165/genqueuesearch.php", true);
        xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
        xmlhttp.send(parameters); 
     }
  &lt;/script&gt;
  &lt;/head&gt;
  
     &lt;body onload="View()"&gt;
        &lt;div id="datatable" align="center"&gt;&lt;/div&gt;
     &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Tried getElementsbyTagName but I don't know the tag names for the columns I would like. Does this require saving the table to a text file first? I appreciate all your help and please ask if I'm not clear. </p>