Home > Web Front-end > JS Tutorial > body text

COOL and practical dynamic effects_time and date

WBOY
Release: 2016-05-16 19:27:40
Original
875 people have browsed it

When I was working on a project recently, the customer requested that the data in the table can be dragged and selected, so I wrote the following method using JS. Supports IE, FIREFOX and other browsers. Realize the selection of the entire row and column of data, select all, invert the selection, clear, and select all the cell data in the rectangular range dragged out of the data table.

PS:

1. If the data cell has no data, please set the ID to empty or remove the ID, and set the style to "inactive". This cell will be skipped when selecting.

2. If you do not want a certain cell to be selected, please set the class to "bg_green", then this cell will be skipped when selecting.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!