Yes of course i was presuming there was only one select, which makes my
example correct, but in a real life site you have to use an id .
-- David
Sam Collett schreef:
That gets all options in all selects, this would be better:
$('#mySelectElement option').length
On Sep 12, 1:14 pm, David D
That gets all options in all selects, this would be better:
$('#mySelectElement option').length
On Sep 12, 1:14 pm, David Duymelinck <[EMAIL PROTECTED]> wrote:
> $('select option').length should do it.
>
> -- david
>
> Ojas schreef:
>
> > Using jQuery, how can I get the following value?
>
> > do
$('select option').length should do it.
-- david
Ojas schreef:
Using jQuery, how can I get the following value?
document.myForm.mySelectElement.options.length
--
David Duymelinck
[EMAIL PROTECTED]
3 matches
Mail list logo