Replace all childnodes that have classname attribute in java script
<p>I am using Selenium Webdriver for my project. I have a webpage where there are multiple menu items which in turn has sub menu items. I want to replace the classname attribute for all child elements under the nav-left-main div tag with "" (space) so that all elements are visible in the main page to click (instead of navigating to each menu->sub menu)
Basically i want to find all elements with classname under id=main and replace them with ''. How do i do that with JavaScriptExecutor in selenium webdriver?</p>

<pre><code>&lt;div id="nav-left-main"&gt;
&lt;div&gt;
&lt;a class="left-nav-icons icomoon-icon-users3 " title="Users" href="#Users-tab"&gt;
&lt;div id="Users-sub" class="nav-left-subnav"&gt;
    &lt;div id="Users-tab" class="hidden-menu"&gt;
      &lt;ul class="level3menu"&gt;
       &lt;li&gt;
          &lt;i class="cm-icon18 iconfont-arrow-sans-right" style="margin-top:-2px;margin-left:-17px;"&gt;&lt;/i&gt;
          &lt;a&gt;Users&lt;/a&gt;
          &lt;ul class="second-level-hidden-menu" style="margin-left:5px;margin- top:10px;"&gt;
          &lt;ul class="second-level-hidden-menu" style="margin-left:5px;margin-top:10px;"&gt;
          &lt;ul class="second-level-hidden-menu" style="margin-left:5px;margin-top:10px;"&gt;
       &lt;/li&gt;
   &lt;/ul&gt;
&lt;ul&gt;
      &lt;li&gt;
        &lt;a id="AdminGroups" class="$item.className" title="" href="cms?action=groupList&amp;pageTitle=Groups"&gt;Groups&lt;/a&gt;
      &lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>