This demo shows a red box showing the bounding box of the selection in the textarea. Try it out by slecting text in the textarea. Check out the project here.