Creating Form Elements | JavaScriptSource

Creating Form Elements

Matt Murphy Jan 16, 2008

General

This script will generate various bug-free form elements with name attributes, selected options, and more for IE 6+, Firefox, Opera and Safari.

The script also creates a submit button. For demonstration purposes, it has been eliminated on this page.


Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: createDomForm.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(0 comments)