OZONE Asylum
Forums
DHTML/Javascript
Finding number of options selected in multiple choice
This page's ID:
30939
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I assume you are talking about SELECT item (you mentioned "options") [code] function countSelectedItems(id){ var opts=document.getElementById(id).options; var ret=0; for(var i=0;i<opts.length;i++) ret+=(opts[i].selected)?1:0; return ret; } [/code]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »