I would like to know in what way the following code can be done but with VUE, I would like to venture into this new technology but I do not have much knowledge about it then I would like to pass the next ajax call but with VUE, I have already loaded the library to project.
<script>
$("#del-"+<?php echo $persona["id"];?>).click(function(e){
e.preventDefault();
id = document.getElementById("id-"+<?php echo $persona["id"];?>).value//obtener valor del input
var url = "enviar.php";
$.ajax({
type: "POST",
url: url,
data:{id:id},
success: function(data)
{
}
});
});
</script>