Getting the last enable radio button bar the last.

Getting the last enable radio button bar the last.

Hi, is it possible to get the last enabled radio button prior to the last item?


For example, I want it to ignore the fifth radio button, so instead of returning the value 5 it would return the value 2 as this is the last enabled button prior to the two that are disabled.

Thanks,
A4.