select 选中索引
1 <script> 2 $('#someId').change(function(){ 3 // alert($('#someId').prop('selectedIndex')); //0、1、2、3........... 4 // alert($('option:selected', '#someId').index()); //0、1、2、3........... 5 alert($('#someId option').index($('#someId option:selected'))); //0、1、2、3........... 6 }); 7 8 </script>