Glen Thank you, but i know how to get value from a single select....i
need to get the value from the filtered select, because there will be
many of them. The filtered part is working for me...but not the get
value part...your code isn't working...

yes i have multiple selects and more of them can have value but at
least one (in a row) has to have value selected...they're in a row
which i clone...you can then fill a row at a time...selects are just
plain selects

here's the code

$(".fields tr").each(function(){
var $inputs = $('input',this);
var qty =
$inputs.filter("[name='qty[]']").children("option:selected").attr("value");
...
}


On Jan 22, 12:03 am, Hamish Campbell <[EMAIL PROTECTED]> wrote:
> Can you show the source of the selects, because the description is a
> little confusing. You have array of selects? So multiple selects, but
> only one has a value at any one time? Or do you have a multi-selection
> select and hence you're trying to find the _options_ that are
> selected?
>
> On Jan 22, 11:43 am,rayfidelity<[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have array of selects, and i filter them with:
> > $inputs.filter("[name='qty[]']"). I want to get selected value. But i
> > don't know how...
>
> > I tried with:
>
> > $inputs.filter("[name='qty[]']").filter("select
> > option:selected").val();
> > $inputs.filter(function(){"[name='qty[]']" && "select
> > option:selected"}).val();
>
> > And some other things...but without success...can anyone help?

Reply via email to