skip to Main Content

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

Jquery event not working after append html – Jquery ajax

I have ajax request and when the ajax success I'm replacing the content using html from the ajax response. The controller is like this: $html = view('payroll-cutoff.data-attendance-group', compact('payroll_group', 'payroll_cutoff_group'))->render(); return response()->json([ 'success' => true, 'data' => $html, ]); Inside ajax…

VIEW QUESTION
Back To Top
Search