The append method in jQuery
The append method allows you to add text to the end of elements.
Below is the paragraph:
html<p>text</p>
Now we write the following Javascript code:
javascript$('p').append('<b>!!!</b>');
HTML the code will look like this:
html<p>text<b>!!!</b></p>
Задание 1
Inside each h2, insert '?' at the end.
Задание 2
Inside each h2, insert '!' at the beginning, and insert '?' at the end, and color all h2 red. Do this all in one chain.