title: replaceWith() It works with even-ordered tags, but odd-ordered tags don't work..why?
body: <p>I want to convert input tags into text
  I found the following solution .. but unfortunately it works with the even-ordered input tags, either the odd input tags not work ..What is the reason for that</p>
  <p><br />I mean JavaScript pure
  <br />I tried if with% to add 1+ to odd numbers ..but the problem is there</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let select = document.getElementsByClassName("replace");
  for (let i = 0; i &lt; select.length; i++)
  {
          let data = select[i].value;
          select[i].replaceWith(data);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1&gt; Convert All input to text &lt;/h1&gt;
  &lt;p&gt;
    &lt;input value='test 1' class='replace' /&gt;
    &lt;input value='test 2' class='replace' /&gt;
    &lt;input value='test 3' class='replace' /&gt;
    &lt;input value='test 4' class='replace' /&gt;
    &lt;input value='test 5' class='replace' /&gt;
    &lt;input value='test 6' class='replace' /&gt;
  &lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>