How to get index of selected option in Select control

It took me some time to get the index of selected value of <select> html control. I tried to use 'attr', but 'prop' should be used for this. Notes of web-specialist
Since 2009
jQuery. Colorize even and odd rows of table

Tables with at least 20 rows are more readable when its rows look like stripes – even row in one...