[jQuery] Select Length Reference

[jQuery] Select Length Reference


I apologize in advance if this is in the docs, but I probably won't be
able to access the jQuery site for a while now that the ip has
changed, due to proxy issues.
I want to limit a user from entering more than a specified number of
options, and can't find the correct syntax (or maybe I can't do
this?). Why aren't these equivalent?
var num = document.getElementById('mySelect').length // returns 5
var num = $("#mySelect").length // returns 1; doesn't change so I know
this isn't correct.
TIA,
Jeff