	break;
		}
	}
	$('.selected').append(str);
}


function delCode(){		//删除代码片段
	$('.selected').html('');
}


function createFormCode(){	//生成编辑表单代码
	str = $('#formPreview').html();
	str = str.replace(' selected', '');	//删除selected样式类
	$('#formCode').html(str);
}
</literal>
jQuery(document).ready(function($) {
		$('#cleanCodeBtn').bind("click", function(){
			cleanCode();
		});

		$('#creatFormBtn').bind("click", function(){
			if($('#formPreview').