I have a div:
<div id="pageMessagesBox"></div>
In a java script function I am trying to add some items inside my div:
$("#pageMessagesBox").html("<a id='id'></a>");
But I've got the following result for $("#pageMessagesBox").html():
"<A id=id></A>"
The expected is:
"<A id='id'></A>"
What am I doing wrong here ?