I\'m using some embed codes that insert HTML to the page dynamically and since I have to modify that dynamically inserted HTML, I want a jquery function to wait until the pa
That is the purpose of jQuery's .ready() event:
$(document).ready(function() { if ( $('#abc').length ) //If checking if the element exists, use .length alert("yes"); });
Description: Specify a function to execute when the DOM is fully loaded.