title: loop through html inputs that have an ID
body: <p>I'm struggling here with some javascript code I need. I have an html document with more than 300 inputs (type text). All inputs have an id, some inputs also have a name (similar to the id). I want to loop through all input tags that have an ID but do not have a name and for each one add a name attribute identical to the ID.</p>
  <p>I think it's simple and I know how to find or loop through elements with specific ID but there is something I'm missing and cant figure it out.</p>