As the title says, how do I select every 12th element which is visible? I've tried searching for it in these ways:
$("#content_div > div > img:nth-child(12n):visible").after("<div></div>");
$("#content_div > div > img:visible:nth-child(12n)").after("<div></div>");
None of the ways worked