M
M
mr_blond972015-02-12 10:29:13
JavaScript
mr_blond97, 2015-02-12 10:29:13

AppendChild creates a child class, how do I create a class that comes right after the parent?

I want to learn how to create a class in the Google Chrome Development Tools inspector, directly through the console. For example, if you select an element and write in the console, then a child element of the selected class will be created. How to create an element that comes right after the parent class?$0.appendChild( document.createElement('div') );
e632aacdb7b246fa803fc531180dcb4e.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Sysoletin, 2015-02-12
@sysoletin

1. Not a class, but an element.
2. jQuery('#parent').after('one more')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question