Two Laptop Bag
The moose likes HTML, CSS and JavaScript and the fly likes count the total number of selected items in multilist select box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "count the total number of selected items in multilist select box" Watch "count the total number of selected items in multilist select box" New topic
Author

count the total number of selected items in multilist select box

auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
How to count the total number of selected items in multilist select box
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
Loop through the items and see if it is selected.

Eric
auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
isn't there something like

fieldname.options.selected.length?? ( i know this is wrong, just asking)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

No.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: count the total number of selected items in multilist select box
 
It's not a secret anymore!