varprofessional30 = new cv.linkSelect("#span-profession", {dataType:"licence30",//language:"en",maxL
var professional30 = new cv.linkSelect("#span-profession", { dataType:"licence30", //language:"en", maxLevel : 1, onChange : function(level, value){ jQuery("#profession").val(value); if(value=='3099'){ jQuery("#span-profession-other").show(); }else{ jQuery("#span-profession-other").hide(); jQuery("#span-profession-other #otherPro").val(""); } }, format : function(text){ return text.replace("-不限",""); } }); professional30.setOption(0, { container : "#span-profession", blankItem : {value:-1,text:'没有' }, title : " ", titlePos : "right", name : "professional", id : "professional", css:"form_select", defaultValue : "" //初始化时默认选中的值 }); professional30.render(); jQuery("#resTitle").change(function(){ if(jQuery(this).val()==0){ jQuery("#span-profession,#span-profession-other").hide(); jQuery("#span-profession-other #otherPro").val(""); }else{ jQuery("#span-profession").show(); } }); if(jQuery("#resTitle").val()>0){ jQuery("#span-profession").show(); if(jQuery("#professional").val()=='3099'){ jQuery("#span-profession-other #otherPro").show(); } }