Is there any element on exist / load in jQuery?

When I click a button, I’m adding a paragraph with a p tag. My jQuery is as follows: $(‘button’).on(‘click’,function(){ $(‘body’).append(‘< p>Hello World !< /p>’); }) So, when the page loads, the p tag isn’t present in the html page, so JavaScript won’t recognize the following jQuery: $(document).ready(function(){ // or window.ready(function $(‘p’).after(‘<span>abcd</span>’) } In CSS –…

Details