Problem with selector in jQuery Project 1


#1



https://www.codecademy.com/en/courses/jquery-ext/projects/jquery-prj_bonsai


Hello! In the fifth task of the first jQuery project - Bonsai we need to change "scr" attribute of "img" element which is a child of "div" element with class "meme thumbnail". I tried to select the exact element this way, but it doesn't work:


$('#image-url').keyup(function() {  
  	var imageUrl = $(this).val();
    $('div.meme thumbnail > img').attr('src', imageUrl);
 	});


#2

@mimiroff,
You will have to provide the FULL HTML, CSS and Javascript you are using....