title: Table in Javascript - hide/show columns
body: <p>I've searched SO for hours but have not been able to find a table created like mine where there are hide/show instances - I've tried using some of the standard hide/show for standard HTML tables however it doesn't translate over to work like I need. </p>
  
  <p>I have a table created in JS that loads data from a json and looks like: </p>
  
  <pre><code>var output = "&lt;table class = sample&gt;",
  
  tableHeadings = "&lt;thead&gt;" +
  
  //set column names
  "&lt;tr&gt;" +
  "&lt;th&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;Name:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;Address:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;City:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;State:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;Phone Number:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;PO:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;Stuff:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;Stuff:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;Stuff:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;Stuff:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;th&gt;&lt;u&gt;Stuff:&lt;/u&gt;&lt;/th&gt;" +
  "&lt;/tr&gt;" +
  "&lt;/thead&gt;";
  output += tableHeadings;
  
  output += "&lt;td&gt;"+'&lt;a href="#" onclick="javascript:displayInfobox(' + (i) + ');"&gt;' + results[i]["Business Name"] +'&lt;\/a&gt;' + "&lt;/td&gt;" +
  "&lt;td&gt;" + results[i]["Address"] + "&lt;/td&gt;" + 
  "&lt;td&gt;&lt;center&gt;" + results[i]["City"] + "&lt;/center&gt;&lt;/td&gt;" + 
  "&lt;td&gt;&lt;center&gt;" + results[i]["StateListing"] + "&lt;/center&gt;&lt;/td&gt;"; 
  
  document.getElementById("placeholder").innerHTML = output;
  </code></pre>
  
  <p>What I am trying to do is hide/show using a button/checkbox the address column. I have tried using style.display as well as .hide/.show in jquery. Everything I try will hide the first entry but still display the addresses for every entry after that. </p>
  
  <p>I need to be able hide the address information on command for ALL of the entries that are displayed.</p>