when a link is inserted in dom click on it jquery code example Example: click a link using jquery $("a").trigger("click");