I have a number of javascript variables on my page:
var opts_???? = ...
var opts_???? = ...
var opts_???? = ...
The ????
is assigned a random number by the content management system, so I don't know the full name of the variable.
I'm looking for any undefined ones.
Is there a way in jQuery to loop through all variables that start with opts_
so that I can test them for being undefined?
The variables are all global, if that helps.
If not in jQuery, I'll settle for regular javascript.