File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change
1
+ //Insert Adjacent HTML/Element/Text
2
+
3
+ // first.insertAdjacentHTML('beforebegin', '<div class="test">beforebegin</div>');
4
+ // first.insertAdjacentHTML('beforeend', '<div class="test">beforeend</div>');
5
+ // first.insertAdjacentHTML('afterbegin', '<div class="test">afterbegin</div>');
6
+ // first.insertAdjacentHTML('afterend', '<div class="test">afterend</div>');
7
+ first . remove ( )
Original file line number Diff line number Diff line change 15
15
Hey I am first container
16
16
</div>
17
17
Hello world -->
18
- I am start of this container (outer)
18
+
19
+ <!-- I am start of this container (outer)
19
20
<div class="container">
20
21
I am start of this container (inner)
21
22
<div id="first">I am the first element</div>
22
23
I am end of this container (inner)
23
24
</div>
24
- I am end of this container (outer)
25
+ I am end of this container (outer) -->
26
+
27
+ < div id ="first "> Hey I am first</ div >
25
28
26
- <!-- <script src="41_script.js"></script>
27
- <script src="42_script.js"></script> -->
28
- < script src ="43_script.js "> </ script >
29
+ <!-- <script src="41_script.js"></script> -->
30
+ <!-- <script src="42_script.js"></script> -->
31
+ <!-- <script src="43_script.js"></script> -->
32
+ < script src ="44_script.js "> </ script >
29
33
30
34
</ body >
31
35
You can’t perform that action at this time.
0 commit comments