BirdieNamNam
Programmer
Hello dear friends!
I want to get the number of options from a SELECT box in a HTML form. Can I do this? I can't find the property anywhere. I have tried (the form's name is "config")
, but I cannot seem to get it right.
Best regards, Sebastian.
I want to get the number of options from a SELECT box in a HTML form. Can I do this? I can't find the property anywhere. I have tried (the form's name is "config")
Code:
document.config.elements[i].size
document.config.elements[i].length
document.config.elements[i].options.lenght
, but I cannot seem to get it right.
Best regards, Sebastian.