jquery代码
$(document).ready(function (){
var sid = $('#sport_type_id').attr('sid');
var auth = $('#auth').attr('auth');
$("#sport_type_id option[value="+sid+"]").attr("selected",true);
$("#auth option[value="+auth+"]").attr("selected",true);
});
html代码
<div>
权限:<select name='auth' id="auth" auth="<{$teamInfo.auth}>">
<option value="1">所有人加入</option>
<option value="2">验证加入</option>
<option value="0">拒接加入</option>
</select>
</div>