user ability to hide one column only on view What is the best way to give the user the ability to see or hide one column (only one) on a drupal 7 view?  I want to give them a toggle box to be able to hide and unhide the column
Found the answer here http://siripong-computer-tips.blogspot.com/2011/12/hide-table-column-drupal-view-w-jquery.html

View 3 on drupal 7 produces html like this

&lt;table class="views-table cols-4"&gt;
  &lt;thead&gt; &lt;tr&gt;
    &lt;th class="views-field views-field-title"&gt;Example&lt;/th&gt;
    &lt;th class="views-field views-field-body"&gt;howto&lt;/th&gt;
    &lt;th class="views-field views-field-field-1"&gt;dynamically&lt;/th&gt;
    &lt;th class="views-field views-field-field-2"&gt;show/hide&lt;/th&gt;
  &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr class="odd views-row-first views-row-last"&gt;
      &lt;td class="views-field views-field-title"&gt;table column&lt;/td&gt;
      &lt;td class="views-field views-field-body"&gt;Drupal&lt;/td&gt;
      &lt;td class="views-field views-field-3"&gt;Views&lt;/td&gt;
      &lt;td class="views-field views-field-4"&gt;jquery&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;


go to view edit page
Displays -> Page Details -> Page Settings -> Footer
add the following code

Show columns
&lt;form&gt;
&lt;input onclick="toggleVis(this, '.views-field-title')" type="checkbox"&gt; Title
&lt;input onclick="toggleVis(this, '.views-field-body')" type="checkbox"&gt; Body
&lt;/form&gt;

&lt;script type="text/javascript"&gt;
  function toggleVis(chkbox, col){
    if(chkbox.checked == true) {jQuery(col).show();}
    else {jQuery(col).hide();}
  }
&lt;/script&gt;


using Jquery to toggle hide the column