I have some JavaScript I'm trying to edit. Basically the JavaScript is creating a button to click on if the color is red, which works, but I need to add the date to the actual href value.
if (color == "#DC3545") {
var date = $("#selected_date").val();
$("div.toolbar")
.html('<a class="btn btn-primary" href="edit.php?Date=+date" >Edit Day</a>');
}