// Get start pos in intput Box with id="Box1" $("#Box1").caret().start // Get end pos $("#Box1").caret().end // Get selected text $("#Box1").caret().text