The parent node of the parent node, for example, there is such a paragraph HTML: Copy code The code is as follows:<form id="form"> <div id="divA"> <div id="divB"> <input type="button" value="Delete" onClick="deleteMe(this.parentNode.parentNode);"> </div> </div> </form> In this case, this.parentNode is divB, and this.parentNode.parentNode is divA. The so-called parentNode is the node on the previous layer. |
<<: What qualities should a good advertisement have?
>>: IDEA complete code to connect to MySQL database and perform query operations
environment Server: centos7 Client: window Deploy...
use Flexible boxes play a vital role in front-end...
Table of contents vue router 1. Understand the co...
Table of contents What is multi-environment confi...
Table of contents 1. Introduction II. Monitoring ...
Usually the goal of building a website is to have...
Table of contents Since Vuex uses a single state ...
INSERT INTO hk_test(username, passwd) VALUES (...
Table of contents 1. Introduction 2. Use 1. @Comp...
This article example shares the specific code of ...
webpack-dev-server core concepts Webpack's Co...
Redux is a simple state manager. We will not trac...
1. Download MySQL Archive (decompressed version) ...
Effective solution for Ubuntu in virtual machine ...
1.1 What is MySQL multi-instance? Simply put, MyS...