使用jquery在循环中获取select标记的值

how can i get the value of a field inside a loop using jquery? ex.

<?php 
    for($counter=0; $counter<2; $counter++)
    {
       ?><select name="try<?php echo $counter; ?>">
       //bla bla bla..,.,.,.,.,. 
<?php 
    } 
 ?>

thankz a lot,.,.,

$('select[name=try]').val();

or if you need to know not the selected value, but value by index:

$('select[name=try]').find('option').eq(0).text(); - for text inside option node
$('select[name=try]').find('option').eq(0).attr('value') - for value attribute

where 0 is the index of the option node, i.e. 0 - first, 1 - second, etc.

You also have a counter after <select name="try0">, so naturally you would have to do $('select[name=try0]').val(), $('select[name=try1]').val(), etc