2
My system should work as follows:
By clicking the button highlighted in red in the image below
He opens this modal here:
This already happens, but now I need to click on the first image, it takes the data-id="@milestones.Codigo"
and save in the field CodigoMilestone
.
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 that?
Must be something like this:
var id = $(this).attr("data-id");
– user31040