buildSelectBox
udf to create a drop down box from a list
/**********************************************************
 function buildSelectBox(formField,list)
 UDF to build a select dropdown box from a list 
@formfield: the name of the form field to populate
@list: the name of the list to use
@author: joel Richards
@email:  joel@brainstormin.net
***********************************************************/
 function buildSelectBox(formField,list) {
 
  var optionLen = listLen(list);
	var field = "";
	field = "<select name='" & formfield & "'>";
	 for ( i=1; i lte optionLen; i = i + 1 ) {
	  field = field & "<option value='" & listGetAt(list,i) & "'>" & listGetAt(list,i) & "</option>" & chr(10);
	 }
	field = field & "</select>";
	 return field;
 }
 

cover
Buy Fusebox 5 & FLiP: Master-Class ColdFusion Applications
cover
Buy Fusebox 4 & FLiP: Master-Class ColdFusion Applications
cover
Buy ColdFusion Lists, Arrays, & Structures
cover
Buy ColdFusion XML Objects

Dedicated and Shared CF Hosting