function loadSelect(strObjSel, strOpts, createDefaultVal, delimChar){
    if(delimChar === undefined || delimChar == null) { delimChar = ','; }
    if(createDefaultVal === undefined || createDefaultVal == null || createDefaultVal){ $(strObjSel).append($('<option />')); }

    $.each(strOpts.split(delimChar), function(index, value){
        $(strObjSel).append($('<option />').attr({'value':value}).text(value));
    });
}
/*
**    Description:    Populate select box with options generated from a delimited string
**    Arguments:        strObjSel (string) - jQuery selector string identifying the <select> object to be manipulated
**                    strOpts (string) - delimited list of values to be used in populating <option> collection
**                    createDefaultVal (boolean) [optional] - true by default, should an empty default value be created within the <select>
**                    delimChar (string) [optional] - a comma by default, the character used to split the strOpts string
*/
Populate select box with options generated from a delimited string
Arguments:        strObjSel (string) - jQuery selector string identifying the  object to be manipulated
strOpts (string) - delimited list of values to be used in populating  collection
createDefaultVal (boolean) [optional] - true by default, should an empty default value be created within the 
delimChar (string) [optional] - a comma by default, the character used to split the strOpts string
Populate select box with options generated from a delimited string Arguments : strObjSel ( string ) - jQuery selector string identifying the object to be manipulated strOpts ( string ) - delimited list of values to be used in populating collection createDefaultVal ( boolean ) [ optional ] - true by default should an empty default value be created within the delimChar ( string ) [ optional ] - a comma by default the character used to split the strOpts string
function loadSelect(strObjSel, strOpts, createDefaultVal, delimChar){
    if(delimChar === undefined || delimChar == null) { delimChar = ','; }
    if(createDefaultVal === undefined || createDefaultVal == null || createDefaultVal){ $(strObjSel).append($('<option />')); }
    $.each(strOpts.split(delimChar), function(index, value){
        $(strObjSel).append($('<option />').attr({'value':value}).text(value));
    });
}
function loadSelect ( strObjSel , strOpts , createDefaultVal , delimChar ) { if ( delimChar === undefined || delimChar == null ) { delimChar = ',' ; } if ( createDefaultVal === undefined || createDefaultVal == null || createDefaultVal ) { $ ( strObjSel ) . append ( $ ( '<option />' ) ) ; } $ . each ( strOpts . split ( delimChar ) , function ( index , value ) { $ ( strObjSel ) . append ( $ ( '<option />' ) . attr ( { 'value' : value } ) . text ( value ) ) ; } ) ; }
Description:    Populate select box with options generated from a delimited string
Arguments:        strObjSel (string) - jQuery selector string identifying the <select> object to be manipulated
strOpts (string) - delimited list of values to be used in populating <option> collection
createDefaultVal (boolean) [optional] - true by default, should an empty default value be created within the <select>
delimChar (string) [optional] - a comma by default, the character used to split the strOpts string
Description : Populate select box with options generated from a delimited string Arguments : strObjSel ( string ) - jQuery selector string identifying the <select > object to be manipulated strOpts ( string ) - delimited list of values to be used in populating <option > collection createDefaultVal ( boolean ) [ optional ] - true by default should an empty default value be created within the <select > delimChar ( string ) [ optional ] - a comma by default the character used to split the strOpts string