code: function(selected, active, stopOnParents) {
  		// TODO: test case
  		var nodeList,
  			selectedName = (selected !== false) ? "ft_" + this._id + "[]" : selected,
  			activeName = (active !== false) ? "ft_" + this._id + "_active" : active,
  			id = "fancytree_result_" + this._id,
  			$result = $("#" + id);
  
  		stopOnParents = ( typeof stopOnParents === "boolean" ) ? stopOnParents : (this.options.selectMode === 3);
  		if($result.length){
  			$result.empty();
  		}else{
  			$result = $("<div>", {
  				id: id
  			}).hide().insertAfter(this.$container);
  		}
  		if(selectedName){
  			nodeList = this.getSelectedNodes(stopOnParents);
  			$.each(nodeList, function(idx, node){
  				$result.append($("<input>", {
  					type: "checkbox",
  					name: selectedName,
  					value: node.key,
  					checked: true
  				}));
  			});
  		}
  		if(activeName && this.activeNode){
  			$result.append($("<input>", {
  				type: "radio",
  				name: activeName,
  				value: this.activeNode.key,
  				checked: true
  			}));
  		}
  	}
docs: TODO: disable() TODO: enable() TODO: enableUpdate() TODO: fromDict 
  Generate INPUT elements that can be submitted with html forms.
  
  In selectMode 3 only the topmost selected nodes are considered.
  
  @param {boolean | string} [selected=true] Pass a string to define the variable name (default: `ft_ID[]`)
  @param {boolean | string} [active=true] Pass a string to define the variable name (default: `ft_ID_active`)
  @param {boolean} [stopOnParents] Pass false to generate all selected nodes, even in selectMode 3