<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> <img id="my_id" src="/photo/Материалы/my image.jpg"> <script> var mes = $('img#my_id').attr('src'); alert(mes); </script>