Link to home
Start Free TrialLog in
Avatar of Moti Mashiah
Moti MashiahFlag for Canada

asked on

Javasctipt

Hi guys,

I'm scratching my head here as I can't display image through javascript to html

Here is my example:
I have this javascript that should bring back the image from facebook but it gives just the alt: hello instead.
 $("#picreturn").html('<img src"https://chart.googleapis.com/chart?cht=qr&chs=200x200&chl=http%3a%2f%2fwww.facebook.com" alt="hello"/>')

Open in new window

Here is my tag html when I suppose to put my image:
<div id="picreturn" class="col-md-12 col-sm-12">
   
</div>

Open in new window


I did it million times and know its not working :). do I have some issue with this simple code.?

thanks ,
ASKER CERTIFIED SOLUTION
Avatar of ES Cheong
ES Cheong
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Moti Mashiah

ASKER

Thank you man. I just saw my missed LOL.