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
Table of contents Create a new html file: Create ...
The following is some basic sql knowledge I have ...
Table of contents A brief overview of the replica...
What is a profile? We can use it when we want to ...
In this note, we briefly describe What is the B+T...
This article mainly introduces how some content i...
Preface meta is an auxiliary tag in the head area...
The async_hooks module is an experimental API off...
Table of contents 1. Introduction 2. Preparation ...
In previous blog posts, I have been focusing on so...
Table of contents Start and stop Database related...
Let's take a look at my error code first. htm...
During normal project development, if the MySQL v...
Table of contents Overview definition Instance Me...
When we are doing front-end development, we will ...