how can put a javascript variable in img tag

Posted by ajithperuva on Stack Overflow See other posts from Stack Overflow or by ajithperuva
Published on 2010-03-17T10:46:01Z Indexed on 2010/03/17 10:51 UTC
Read the original article Hit count: 169

Filed under:

I need to put a javascript variable as image source.That is my image tag should be in this format here i am adding my script document.getElementById("pricefilter").innerHTML ='' here variablename carries my image path.How can i put this in double quates.Please help to solve this

© Stack Overflow or respective owner

Related posts about JavaScript