Jump to content

Double & Single Quotations Problem


HungryMind

Recommended Posts

HiI've this line:

document.getElementById("div").innerHTML = "<img src='images/close-btn.jpg' height='16' width='16' onclick='document.getElementById("div").style.display="none";' />";[code]I want to use quotation under onclick function on image.But i can't use double quotations under double quotations.And i've used single quotations too.What should i do?Please guide?
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...