Uncaught TypeError: number is not a function [closed]
Try this: <script type=”text/javascript” charset=”utf8″> jQuery(function($){ $(‘img’).each( function() { var mySrc = $(this).attr( “src” ); $(this).wrap( ‘<a href=”‘+mySrc+'” class=”link”></a>’ ); }); }) </script>