This shows the entire content of the website in the modal.
`<input type=”button” name=”view” value=”view” id=”” class=”btn btn-info btn-xs view_data” />
$(document).ready(function(){
$(document).on('click', '.view_data', function(){
var product_id = $(this).attr("id");
var product_name = $("#product_name").val();
var product_price= $("#product_price").val();
var quantity = $("#quantity").val();
$.ajax({
url:"index.php",
method:"POST",
data:{product_id:product_id, product_name: product_name, product_price: product_price, quantity: quantity},
success:function(data){
$('#employee_detail').html(data);
$('#myModal').modal('show');
}
});
});
});`