Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Modal Edit Specific/Same table row, where button is

// PHP LARAVEL
// LINK TO MODAL. href and data-target(links to modal id) is most important here
<a 
	href="{{ route('admin.customers.edit', $id) }}" 
  	data-hover="tooltip" 
	data-placement="top" 
  	data-target="#modal-edit-customers{{ $id }}" 
 	data-toggle="modal" 
  	id="modal-edit" 
  	title="Edit">
</a>

// MODAL
<div class="modal" id="modal-edit-customers{{ $id }}">
 // modal content
</div>
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #Modal #Edit #table #button
ADD COMMENT
Topic
Name
3+4 =