skip to Main Content

Call two actions from Html.BeginForm ASP.NET MVC

So the first action would be: @using (Html.BeginForm("Edit", "Post", FormMethod.Post, new { enctype = "multipart/form-data" })) and the second would be a ajax call: <input type="submit" value="Save" onclick="deleteImages()" class="btn btn-default" /> Ajax: <script> let deletedImages = []; function Remove(id, e)…

VIEW QUESTION

How can I add a identification value to a modal box to identify which particular div the modal is being opened from – Jquery ajax

I have three divs each looking like this <div class="col-lg-6 col-md-6 col-sm-12 mb-4"> <div class="card"> <div class="card-body b-primary"> <div class="row justify-content-center"> <div class="col-md-5 col-sm-12"> <img src="assets/images/gateway/61eedfd72289f1643044823.jpg" class="card-img-top w-100" alt="Stripe"> </div> <div class="col-md-7 col-sm-12"> <ul class="list-group text-center"> <li class="list-group-item">Stripe</li> <li class="list-group-item">Limit…

VIEW QUESTION
Back To Top
Search