- How to pass data to a modal in laravel?
- How to pass form data to modal?
- How to pass data from controller to modal in laravel?
How to pass data to a modal in laravel?
Create the input fields inside the modal window with the id that are passed in find method. That will put the values passed in the input fields inside modal window.. Save this answer.
How to pass form data to modal?
Pass Data to Bootstrap Modal JavaScript Example & Demo
$(“#modal-body”). html(myHeading + x); will add the data in modal body element which has id “modal-body”. Thus you can pass any data you want in the modal body.
How to pass data from controller to modal in laravel?
modal("show"); user_id = sanitizeHTML($(this). attr("id")); // Show Roles $. ajax( url: "users/" + user_id + "/edit/", type: "GET", dataType: "html" ). done(function(response) $("#editUserModal") .