$('#type').change(function(){selectShop();}); //当ID为type的属性变更后执行selectShop函数的方法
function selectShop(){
var type = $('#type>option:selected').val(); //初始化type属性
if(type == 'taobao'){ //当属性为taobao的时候输出对应ID选择器上对应的内容
$('#shopername').text('掌柜名称');
}else if(type == 'paipai'){
$('#shopername').text('Q Q 号');
}else if(type == 'alibaba'){
$('#shopername').text('掌柜名称');
}
}
function selectShop(){
var type = $('#type>option:selected').val(); //初始化type属性
if(type == 'taobao'){ //当属性为taobao的时候输出对应ID选择器上对应的内容
$('#shopername').text('掌柜名称');
}else if(type == 'paipai'){
$('#shopername').text('Q Q 号');
}else if(type == 'alibaba'){
$('#shopername').text('掌柜名称');
}
}