怎么样
$('select>option:eq(3)').attr('selected', true);对于现代版本的jquery,应使用
.prop()代替
.attr()
$('select>option:eq(3)').prop('selected', true);
怎么样
$('select>option:eq(3)').attr('selected', true);对于现代版本的jquery,应使用
.prop()代替
.attr()
$('select>option:eq(3)').prop('selected', true);