var input = document.createElement("input");
 
input.setAttribute("type", "hidden");
 
input.setAttribute("name", "name_you_want");
 
input.setAttribute("value", "value_you_want");
 
//append to form element that you want .
document.getElementById("chells").appendChild(input);