What is the best way to get the ID of drop down options?

So can the documentation be update to be clear and to include the examples above?