摘要:
1 获取第一个option的值 2 $('#test option:first').val(); 3 //最后一个option的值 4 $('#test option:last').val(); 5 //获取第二个option的值 6 $('#test option:eq(1)').val(); 7 //获取选中的值 8 $('#test').val(); 9 $('#test option:selected').val(); 10 //设置值为2的option为选中状态 11 $('#test') 阅读全文
posted @ 2012-05-17 14:36
lostyue
阅读(380)
评论(0)
推荐(0)

浙公网安备 33010602011771号