Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

Code Block
javascript
javascript

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

...