Here's my attempt to get the last item in the dropdown and check it:
if (day.lastIndexOf(day.length) == 28) {
..do something
}
day var is set to reference dropdown control. Obviously I am not doing this right. How do I know where I can apply lastIndexOf on a dropdownlist? How do I get at it's array? I tried this also but it doesn't work, syntax error:
day.options.lastIndexOf(day.length)
one would think that should work, options is an array of values I think..has to be.