开发者

How can I select a range of td's in a table with javascript area selection?

开发者 https://www.devze.com 2022-12-24 12:36 出处:网络
I looking for a script that will enable me to select an area in a table (using the mouse), something similar to this script - http://odyniec.net/projects/imgareaselect/.

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

What I need to do is to select some td's with an identical area effect as u开发者_如何学运维sed in the imgareaselect above, and manipulate the containing data. Any ideas?

Thank you!


With jQuery UI you should be able to do something like this:

$('table').selectable({
    filter: 'td'
});
0

精彩评论

暂无评论...
验证码 换一张
取 消