Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get selection text with nothing #7

Open
mdtrooper opened this issue Sep 7, 2014 · 3 comments
Open

Get selection text with nothing #7

mdtrooper opened this issue Sep 7, 2014 · 3 comments

Comments

@mdtrooper
Copy link

Hi.

I want a method to get the selection text in the page without know if there is a textarea or html text.

Something that:

var text = $(document).selection();

Regards.

@pinventado
Copy link

try $.selection()

@mdtrooper
Copy link
Author

Thanks, I will try your trick.

@ninbit
Copy link

ninbit commented Jan 14, 2019

How about $.selection('getPos');? It returns nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants