Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Adding content to DIV not working Reply To: Adding content to DIV not working

#176321
Paulie_D
Member

I think it’s just a matter of correct quotes and src path being correct.

$(document).ready(function () {
    $('#mall-ground').click(function (e) {
        e.preventDefault();
        $('#floor-info').html('<img src="http://lorempixel.com/output/city-q-c-640-480-1.jpg" />');
    });
});

Seems to work – http://jsfiddle.net/Paulie_D/HCwcN/6/