联系官方销售客服

1835022288

028-61286886

求助 版主:官方研发技术组
学段请选择如何获得下拉返回的的值
类型:迅睿CMS 更新时间:2020-02-12 15:37:30

<div class="form-group" id="dr_row_xueduan">

    <label class="control-label col-md-2"><span class="required" aria-required="true"> * </span>学段</label>

    <div class="col-md-9"><input type="hidden" name="data[xueduan]" id="dr_xueduan" value="0"><script type="text/javascript" src="http://qc715.gotoip11.com/static/assets/js/jquery.ld.js"></script><span id="dr_linkage_xueduan_select" style=""><label style="padding-right:10px;"><select class="form-control finecms-select-xueduan"  name="xueduan-1" id="xueduan-1" width="100" ><option value=""> 请选择</option></select></label></span>

<script type="text/javascript">

function dr_linkage_select_xueduan() {

$("#dr_linkage_xueduan_select").show();

$("#dr_linkage_xueduan_cxselect").hide();

}

$(function(){

var $ld5 = $(".finecms-select-xueduan");   

$ld5.ld({ajaxOptions:{"url": "/index.php?s=api&c=api&m=linkage&code=xueduan"},defaultParentId:0})

var ld5_api = $ld5.ld("api");

ld5_api.selected();

$ld5.bind("change",onchange);

function onchange(e){

var $target = $(e.target);

var index = $ld5.index($target);

//$("#xueduan-2").remove();

$("#dr_xueduan").val($ld5.eq(index).show().val());

index ++;

$ld5.eq(index).show();

}

})

</script></div>

</div>


如何获得下拉返回的 option value="" 的值?