Home >Web Front-end >JS Tutorial >javascript uses onclick event to change the color of the selected row_javascript skills

javascript uses onclick event to change the color of the selected row_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:06:031497browse

The table in the html page can be displayed line by line. Of course, divs can also be set to change their color when the mouse is placed on it. Part of the code is as follows

Copy code The code is as follows:


Then set the onmousehover or onclick event on td onmouseover="changeActiveRow(this)"

Statement:
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