經安全檢測,此網站為安全網站,請放心前往原始網址!

.select() | jQuery API Documentation

Now when any portion of the text is selected, the alert is displayed. Merely setting the location of the insertion point will not trigger the event. To trigger the event manually, apply .select() without an argument:

api.jquery.com

網址安全性掃描由 google 提供