title: Check if textarea already exist
body: <p>How to check if a textarea already exists in javascript:</p>
  
  <p>I have a 2 radio button:</p>
  
  <pre><code>YES and NO
  </code></pre>
  
  <p>if Yes is click it will call a javascript function showTxtbox(); and if no it will call the
  removeTxtbox(); </p>
  
  <p>showTxtBox() - Creates a Textarea if radio button YES is clicked.
  removeTxtbox() - Remove a Textarea if radio button NO is clicked.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function showTxtbox()
          {
              var p = document.getElementById("txtArea");
              var textarea = document.createElement('textarea');
              textarea.id = "txtRelativeAns";
              textarea.setAttribute('rows', '4');
              textarea.setAttribute('cols', '50');
              p.appendChild(textarea);
          }
      function removeTxtbox()
          {
              var p = document.getElementById("txtArea");
              var textarea = document.getElementById('txtRelativeAns');
              p.removeChild(textarea);
          }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>My problem is, when radio button YES is click twice. It will create 2 textarea..
  How can I check if textarea already exist.. then if yes it will no longer create a textarea.</p>
  
  <p>thanks!</p>