I'm new to JavaScript so excuse me for this question,, when i use jQuery to append data from firebase to a table
i want to append a button but has a href url from variable
url_val = is a variable url i want when i click to the button go to website
$("#data").append("<tr><td>" + title_val + "</td><td><button class='box'> " + url_val + "</button></td></tr>");
i was trying to do the fowling
$("#data").append("<tr><td>" + title_val + "</td><td><a href="url_val"> <button class='box'> " + GO + "</button></a></td></tr>");
but i cant add a variable inside is there a solution for this