determine if select menu empty
How can I tell if a select menu has been populated or not
It is populated from a rest service, but I need to know if it has been already populated or not
I have tried (from jquery site)
if (Tiggzi('smservice').has('option').length 0) {
alert('Options ' + Tiggzi('smservice').has('option').length);
}
This always returns 1 no matter how many are in the select or if non are in the select
any ideas please
Regards
steve