The question is sort of self explanatory. I'm trying to get the index of an specific text inside of a div after the user selects it with the mouse, so I can store it on a database. The idea is to retrieve that record from the database and wrap that text in a span tag using the index stored.
Thanks!