Complex Form Features

By: George Jaros

	################################################
	## Author: George Jaros                       ##
	## Script Name: Complex Form Features         ##
	## Copyright 2004 George Jaros & Web 2 Market ##
	## www.georgejaros.com  www.web2market.com    ##
	## This code may be replicated as long as     ##
	## this header statement is included.  The    ##
	## Instructions below may be removed.         ##
	################################################
	
	This code allows for some complex form displays. 
	 
	First, it allows for a parent drop down to control the options displayed 
	in a second dependent drop down.  The options in the dependent drop down 
	will change depending on the selected option in the parent form.  Unlike
	most of the other JavaScripts out there, this parent/dependent relationship
	is defined in the function arguments rather than hard coded.  Therefore
	the same script can be used in multiple parent/dependent relationships in
	a form.  The only limit is to how many menu arrays you build.
	
	Second, it allows for fields to be hidden or shown when an event occurs.  
	Fields can be given a default value for instructions.  I've also included 
	code for the field to be cleared out or selected when it is clicked
	
	Third, it allows for fields to be shown if/when Other is selected from a drop 
	down menu.
	
	Fourth, it allows for drop down menus to be reset to the first element or 
	cleared completely when an event occurs.







eXTReMe Tracker