Hi, I want to add element after an element with loop. For example, I have 10 paragraph elements and I want to add div element after each paragraph element. How can I do it?
ziyaddinsadigov
Recommended Answers
Jump to PostYou can use insertAfter() Jquery method
$("<div>Hello world!</div>").insertAfter("p");
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.