Marked select attribute as deprecated, to be replaced by on-select.
Moved iterator variable declaration to loop scope. No need outside loop.