title: How to use YUI to locate an Input by Name and insert content after
body: <p>How can I use YUI to locate a text input by name and insert a div after it?</p>
  
  <p>For example, this doesn't work:</p>
  
  <pre><code>&lt;input name="some_name" type="text"&gt;
  
  &lt;script&gt;
  var el = new YAHOO.util.Element(document.createElement('div'));
  var some_element = document.getElementsByName('some_name');
  
  // doesn't work .... replacing 'some_element' with 'document.body' works
  el.appendTo(some_element);
  
  &lt;/script&gt;
  </code></pre>