You are using jQuery.
jQuery does not include a .createElement()
function.
Thats why you get this Error.
If you want to create an new Element with jQuery you just Need to execute the $
function, with an element tag as parameter.
var element = $("<input>")`//in this example, we create a new input.
If you want to append this element to another you just need to execute the .append()
function like:
$("#uploadsfrm").append(elememt);
You can also define your Attributes with the $
function.
Example:
function create(){
//new Input stored in element
var element = $("<input>",{
//your Attributes
name:"theInputName",
placeholder: "yourPlaceholder"
});
//appending your New input
$("#yourAppendID").append(element);
}