Call removeAllRanges() to clear the selection