title: Javascript get string value in a tag
body: <p>I have a question about how to read the string betweena tag, for example. </p>
  
  <pre><code>Devices connecting to HOME &lt;a onclick="kmt_Toggle('BOX01', this)" class="cs_answer_link" value="[Show me how to download and install my map..]"&gt;[Show me how to download and install my map..]&lt;/a&gt;&lt;br /&gt;
  &lt;br /&gt;
  &lt;div class="cs_answer_secondAccordion" id="BOX01" style="display: none;"&gt;
  Steps for downloading and installing a map...
  &lt;/div&gt;
  </code></pre>
  
  <p>My code a simple, when users click on the a tag, the div class will show, and change Show me how to download and install map string in a tag to Close. When users click again, the current "close" will become "original long text". My main issue is that How i can read the string between a tag, thanks. I can not use JQuery </p>
  
  <pre><code>  function kmt_Toggle(obj, aTag) {
    var el = document.getElementById(obj);
    if ( el.style.display != 'none' ) {
        el.style.display = 'none';
        //var tagString=document.ge(aTag).valueOf();
  
       // aTag.innerHTML='[more..]';
      aTag.innerHTML= tagString;
    }
    else {
        el.style.display = '';
        aTag.innerHTML='[close..]';
    }
       }
  </code></pre>
  
  <hr>
  
  <p>Hello Guys, thanks. </p>
  
  <p>I think i have not made my question crystal clear. I want to build a toggle function in this Javascript, if people clicks on a tag, for instance, </p>
  
  <pre><code>&lt;a onclick="kmt_Toggle('BOX01', this)" class="cs_answer_link" value="[Show me how to download and install my map..]"&gt;[Show me how to download and install my map..]&lt;/a&gt;
  </code></pre>
  
  <p>It will show my div if my div has style = none;  and change Show me how to download and install map into "close"</p>
  
  
  Steps for downloading and installing a map...
  
  
  <p>If people click on the link again, it will go back to the "show me how to download and installl map" and hide my div. </p>
  
  <p>I tried to build something by following idealmachine solution. It does not work. </p>
  
  <p>Cheers,
  Qing </p>