Nope, the loop is the correct way to do it. You should also probably check !elems[i].disabled if you're writing a general-purpose function.
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Nope, the loop is the correct way to do it. You should also probably check !elems[i].disabled if you're writing a general-purpose function.