My system should work as follows:
By clicking on the highlighted red button in the image below
Itopensthismodalhere:
Thisisalreadyhappening,butnowIneedtoclickonthefirstimage,itwilltakedata-id="@milestones.Codigo"
and save it in the CodigoMilestone
field.
Button that calls the modal Activity:
<button class="btn btn-default AddAtividade" data-id="@milestones.Codigo"><i class="glyphicon glyphicon-plus"></i></button>
Script that opens the modal:
$(document).ready(function () {
$(".AddAtividade").click(function () {
$("#modal").load("AddAtividade", function () {
$(".modal").modal();
})
});
})
How can I do this?