I have a multiple selection list which have more than 5 options, and i want to count the number of selection of the options selected by the user.
How to do it using java script?
I tried the following but it didn't work for me:
var x = document.getElementById("preference").count;
Thanks in Advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…