Brian Coughter
asked on
Dynamically changing javascript code
I have a <div> that contains a date:
I want to grab that date and update the date on line 5 of the following jQuery code upon clicking a <td>:
How can I accomplish this?
<div id="editDateDiv">10/20/16</div>
I want to grab that date and update the date on line 5 of the following jQuery code upon clicking a <td>:
$("#addNew").on("mouseup", function() {
$(this).css("background", "white");
$(this).css("color", "#008bab");
$("#editDateDiv").html("Add New...");
$("#currentAppts").load("calendar_appNew.cfm?appDate=10/12/2016");
});
How can I accomplish this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER