I have a situation where I should append html with jQuery. Within this html there is an a-tag with javascript as link.
How can I solve this?
$(".messages-wrapper").append('<li class="chat-wrapper"><a class="chat" href="javascript:openChat('http://domain.com/Messenger.aspx'">Chat öffnen<span></span><small>Chat öffnen</small></a></li>')
Thanks!!