It took me a while to figure this one out and it's rather simple - for people with greater JS knowledge than myself. If you're like me and you want the default #alert ID to output HTML, change the .text to .html.
From:
$('#alert')
.text('Click '+data.name+' on map 2 <a href="mailto:test@test.com">email me</a>')
To:
$('#alert')
.html('Click '+data.name+' on map 2 <a href="mailto:test@test.com">email me</a>')
This isn't so much an issue - I just hope it helps someone save time in the future!
It took me a while to figure this one out and it's rather simple - for people with greater JS knowledge than myself. If you're like me and you want the default #alert ID to output HTML, change the .text to .html.
From:
To:
This isn't so much an issue - I just hope it helps someone save time in the future!