Bonsai image change


I'm trying to get the jQuery meme images to change but nothing is happening at the moment (and I can't quite figure out why). My code for this particular bit is below - I'm not getting any error messages, just nothing changing.

  var imageLink = $('#image-url').val();


Hi @melvollo01,

This line is wrong:


$('...') selects an element, but src is an attribute. attr() takes two parameters when you're setting a value: the attribute name and it's new value.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.