码上敲享录 > jsp开发经验分享 > js获取select标签选中的option

js获取select标签选中的option

上一章章节目录下一章 2019-07-14已有1840人阅读 评论(0)

html

<select id="select" onchange="selectStages()" style="width:100px;" >

  <option value="">请选择</option>

  <option v-for="c in listCombine" :value="c.c_code" >{{c.c_code}}</option>

</select>


js

function selectStages(){

    var option = $("#select").find(“option:selected”).val();

}


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交