javascript - window.getSelection() on mouseup returns previous selection -


When clicking on the pre-selected text, it is unselected and the cursor is visible. This is where my problem appears - on the mouseup event, window.getSelection () still gives the previous selection (category). How to get the right selection (cursor)?


Comments

Popular posts from this blog

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

Send innerHTML text in URL in JSP -