title: Create Form w/ javascript and pass variable to function
body: <p>Ho can I can I create a textbox with javascript and then onclick, pass a function with argument? below the commented out line is the problem</p>
  
  <pre><code>var inputBox = document.createElement("input");
  
  inputBox.staff = project.staff[j].name;
  inputBox.defaultValue = inputBox.staff;
  inputBox.onchange = changeHours;
  
  //inputBox.onclick = selectText(this);
  </code></pre>