jQuery: Insert a DOM elements after all paragraphs
jQuery Fundamental - I : Exercise-9
Using jQuery insert a DOM element after all paragraphs.
Sample solution :
HTML Code :
JavaScript Code :
Used Methods :
- .after() : Insert content, specified by the parameter, after each element in the set of matched elements.
Contribute your code and comments through Disqus.
Previous: Using jQuery insert some HTML after all paragraphs.
Next: Using jQuery insert a jQuery object (similar to an Array of DOM Elements) after all paragraphs.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics