So, I am extracting information from the Google calendar, and I need to separate the variables that I get in order to display them in different divs. So what I need to do is something like this
var divMonth = '<div id ="rawr">'; var divMonthClose = '</div>'; dateString = divMonth + monthName + divMonthClose + ' | ' + parseInt(dateMonth, 10);
However, what do you think the displayed result ...
"<div id ="rawr">December</div> | 8"
It does not actually interpret html and does not make a div layer. So my question is: how can I insert html code into a variable so that it really works like html? Is there a function that I'm missing or is this possible?
Thanks in advance for any help or ideas you may have!
source share