<select class="form-control selectpage sp_input" id="type"> {foreach $link as $k=>$v} <option value="{$v.qr_type}" >{$v.typename}</option> {/foreach} </select>
var options=$("#type option:selected"); //获取选中的option var value = options.val(); var text = options.text();