javascript - Onclick change image source in another div using jQuery -


i have 3 small divs, when click on i'd popuplate larger div @ top of page, issue can't working @ , i've no idea why.

im trying update

$('.highlight-image').on('click', function (e) {  console.log('clicked');  var currimg = $(this).find('.imageholder').children('img').attr('src'); var currp = $(this).find('blockquote').text;  var targetimg = $('.featuredtestimonial img'); var targetname = $('.featuredtestimonial h2'); var targetp = $('.featuredtestimonial p');  $('.featuredtestimonial p').text = currp; $('.featuredtestimonial img').attr('src'); = currimg;  }); 

http://jsfiddle.net/6qcpg/2/

change

$('.featuredtestimonial img').attr('src'); = currimg; 

to

$('.featuredtestimonial img').attr('src', currimg); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -