How to append both single and double quotes in same function
Hi,
I am trying to append the single quote and double quote in the same function, but I am unsuccessful. Please help me in doing this.
HTML:
<input type="button" value="click" id="clickc" onclick="helloMan()"/>
<div id="mainDiv"></div>
JAVASCRIPT:
function helloMan(){
var dialogue = "
I'am Suren and I asked him a question, for which he replied, "I don't know !"";
getName(dialogue);
}
function getName(name){
$("#mainDiv").append("<div>"+name+"</div>");
}
Thanks in advance,
Surendar