createNamedElement( type, name )

This function provides a cross-browser compatible method of creating named HTML element that can be submitted through an HTML form.


  • type – the element type or HTML tag name (input, select, textarea, etc…)

  • name – the name attribute of the created HTML element


var inputField = createNamedElement("input", "company");

Unable to render {children}. This macro only works on pages.