首页 极刻 圈子 教程 开源
极客社区
写文章 发极刻 建圈子 发项目
标签 testoption 相关标签 jquery option select selected val

jQuery操作select

$('#testoption:selected').val();$("#test").attr('value',$('#testoption:last').val());$('#testoption[value=5]').remove();

AnneZhao 2012-10-27 07:25:10

jQuery对下拉框的操作(文摘)

//最后一个option的值 $('#testoption:last').val();$('#testoption:selected').val();//获取select的长度 $('#testoption').length;} });

xuewenke 2011-07-22 14:20:42

jquery select

//最后一个option的值 $('#testoption:last').val();$('#testoption:selected').val();//获取select的长度 $('#testoption').length;} });

EdwardSiCong 2012-04-18 08:24:42

jquery select option 操作

//最后一个option的值 $('#testoption:last').val();$('#testoption:selected').val();//获取select的长度 $('#testoption').length;} });

勤勤学长的csdn 2011-08-17 15:42:03

利用jquery操作select下拉列表框

 //最后一个option的值 $('#testoption:last').val();$('#testoption:selected').val();//获取select的长度 $('#testoption').length;

msyndra 2011-05-23 13:51:33

推荐极客

Blaze Blaze 80407013 80407013 fundebug fundebug 81293313 81293313 87627995 87627995 88916570 88916570 84214254 84214254 86593278 86593278

优质内容社区

首页 文章 极刻 开源 标签 关于我们

© 安科网. All rights reserved.