| egorychmaster | 
			14.04.2015 22:52 | 
		 
		 
		
		 
		
		
			Как обратиться к элементу, находящемуся в другом элементе по нескольким классам?   
		
		
		
		Есть такой кусок кода: 
<div class="fotorama__stage__frame fotorama__loaded fotorama__loaded--img fotorama__active">
  <img class="fotorama__img" src="" >
</div>
 
Мне надо к вложенному  img добавить класс.
 
$(document).ready(function() {
  $(".fotorama__stage__frame").each(function(index) {
    if($(this).hasClass("fotorama__active"))
    {
      alert($(this).html()); //.addClass('nivoZoom');
    }
 });
});
К сожалению выводиться почему-то какой-то мусор :)  
	 |