This function provides a cross-browser compatible method of creating named HTML element that can be submitted through an HTML form.
Parameters:
- type – the element type or HTML tag name (input, select, textarea, etc…)
- name – the name attribute of the created HTML element
Example:
var inputField = createNamedElement("input", "company");