title: how to use ignorecase while matching two ids in js
body: <pre><code>function myfunc()
  {
  
     var x = document.getElementById('MY_DIV').name;
     document.getElementById(x).value=2;
  }
  
  
        &lt;input type="text" id="MY_DIV" name="MY_DIV1"/&gt;
        &lt;input type="text" id="my_div1" /&gt;
        &lt;input type="button" name="submit" value="submit" onclick="myfunc();"&gt;
  </code></pre>
  
  <p>How to use ignorecase in above js code to fill the value 2 in second textbox?</p>