I want to create a serial of text sections each with an unique ID, so that I can link each section to another specified objection in my webpage. Each text section is Selected range like this
I have try to use rangy library to do it.(see Rangy In google code)。But it merely can give selected text a class name. How to give these an Id?