samedi 4 février 2017

Save car id into html

I working with Laravel, with blade views.

I have an array of cars. The user can choose one car from the list, each user can only show his list.

After selecting a car, a modal view appears into the same HTML for showing more information about the car.

If the user wants to remove the car, a post request is called, and HERE is the problem.

How can I pass to the modal, the id of the car that he selected? Because I need it for the post request if he wants to delete the car for example. May be save into variable.

I know how to pass parameter to the modal and then show it into "h3" or "inputs"but this id I can't show him, also he can't change it because he can modify it to remove another car from the list.

Thanks for help



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l9rN06
via IFTTT

Aucun commentaire:

Enregistrer un commentaire