There is a div in it a picture, like using jquery to wrap a picture with the element <a>

<div id="general"> <img src="foto.png" /> </div> 

    1 answer 1

    In jQuery, the wrap() method is designed for this:

     <script> $("#general img").wrap("<a></a>"); </script>