The statement above is clearly wrong! As we can see below in its source code: 
The statement var elt = document.createElement('input');
creates the element over the document, and nowhere else! 
If it has an id attribute, we can use select() for it: 
For elements created inside a sketch by functions like createElement(), createSlider(), etc., simply store them in a variable. 