I am using JQuery to output a link to my webpage. Part of the link is dynamic, and I am having trouble using variables and text together. The variable just gets treated as text. What am I doing wrong?
My Jquery:
var new_collection_id= 1;
var new_collection_title= 'This is a title';
.html('<a href="collection.php?id=1&collection=new_collection_id">
new_collection_title </a>')