How to get the value of a selected text with .select()

How to get the value of a selected text with .select()

Hi, does any one know how can i get the text selected when i use the .select() method??