function dynoDropdowns(currElem, nxtElem, dataObj){
		callAjax(dataObj, function(data){
			console.log(data);
			   $(nxtElem).empty(); // empty the field first here.
			   $(nxtElem).append($('<option></option>').attr('value', '').text('Please Select'));
			   console.log(data);
			   $.each(data, function(i, obj){
				   $('<option />', 
				   {
					   value:obj.value,
					   text:obj.text
				   }
					).appendTo(nxtElem);
			   });
			   
			   //now select the nxtElem selected index if its an update rec
			   if (dataObj.nxtElemIndex !== 0) {
				   //$(nxtElem).val(dataObj.nxtElemIndex);
			   }
				   
		});

	}
/*
	currElem - current select element
	nxtElem -  select element to be populated
	dataObj -  dataobject contains 
				- host
				- formName => the current form name
				- dropdown the current dropdown so as to ascertaing thecajax call to make
				- id ie the id to be selected if its an update
	*/
current select element
nxtElem -  select element to be populated
dataObj -  dataobject contains
host
formName => the current form name
dropdown the current dropdown so as to ascertaing thecajax call to make
id ie the id to be selected if its an update
current select element nxtElem - select element to be populated dataObj - dataobject contains host formName = > the current form name dropdown the current dropdown so as to ascertaing thecajax call to make id ie the id to be selected if its an update
function dynoDropdowns(currElem, nxtElem, dataObj){
		callAjax(dataObj, function(data){
			console.log(data);
			   $(nxtElem).empty(); 
			   $(nxtElem).append($('<option></option>').attr('value', '').text('Please Select'));
			   console.log(data);
			   $.each(data, function(i, obj){
				   $('<option />', 
				   {
					   value:obj.value,
					   text:obj.text
				   }
					).appendTo(nxtElem);
			   });
			   if (dataObj.nxtElemIndex !== 0) {
			   }
		});
	}
function dynoDropdowns ( currElem , nxtElem , dataObj ) { callAjax ( dataObj , function ( data ) { console . log ( data ) ; $ ( nxtElem ) . empty ( ) ; $ ( nxtElem ) . append ( $ ( '<option></option>' ) . attr ( 'value' , '' ) . text ( 'Please Select' ) ) ; console . log ( data ) ; $ . each ( data , function ( i , obj ) { $ ( '<option />' , { value : obj . value , text : obj . text } ) . appendTo ( nxtElem ) ; } ) ; if ( dataObj . nxtElemIndex !== 0 ) { } } ) ; }
currElem - current select element
nxtElem -  select element to be populated
dataObj -  dataobject contains
 host
 formName => the current form name
 dropdown the current dropdown so as to ascertaing thecajax call to make
 id ie the id to be selected if its an update
currElem - current select element nxtElem - select element to be populated dataObj - dataobject contains host formName = > the current form name dropdown the current dropdown so as to ascertaing thecajax call to make id ie the id to be selected if its an update
// empty the field first here.
 //now select the nxtElem selected index if its an update rec
 //$(nxtElem).val(dataObj.nxtElemIndex);
