how to remove link in image in jquery

JavaScript
$("a:has(img)").each(function() { $(this).replaceWith($(this).children()); })

Source

Also in JavaScript: