How to select td range in a table with javascript scope selection?

I am looking for a script that will allow me to select an area in a table (with the mouse), something similar to this script - http://odyniec.net/projects/imgareaselect/ .

What I need to do is select some td with the same area effect, which is used in imgareaselect above, and manipulate the contained data. Any ideas?

Thank!

+3
source share
1 answer

With jQuery UI you can do something like this:

$('table').selectable({
    filter: 'td'
});
+3
source

Source: https://habr.com/ru/post/1738564/


All Articles