Home  >  Article  >  Web Front-end  >  How to modify th in javascript

How to modify th in javascript

藏色散人
藏色散人Original
2022-01-24 16:06:052995browse

How to modify th in JavaScript: 1. Create an HTML sample file; 2. Add a script tag; 3. Pass "$(document).read(function(){$('th').html( '...')})" method can modify the content of th.

How to modify th in javascript

The operating environment of this article: Windows 7 system, javascript version 1.8.5, DELL G3 computer

How to modify th in javascript?

For example:

js gets the th object and changes its content

如:<table id= "1"><tr><th>我是内容</th></tr></table>

The method is as follows:

How to modify th in javascript

Recommended learning: "javascript video tutorial"

The above is the detailed content of How to modify th in javascript. For more information, please follow other related articles on the PHP Chinese website!

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