Get position of Highlighted text in textarea - Javascript

How can I get the position of highlighted text in textarea by using Javascript ? I need to know where exactly the highlighted content starts and where it ends.
22 Dec 2019 at 06:05 PM
0give a positive ratinggive a negative ratingshow more
zeddzedd
Share on FacebookShare on TwitterShare on LinkedInSend email
Follow us on Facebook
2022 AnswerTabsTermsContact us