How to pass drag and drop data to laravel controller
Hello , I am very new on Laravel. I want to add drag and drop answer system in my EMS. there will be some options and students have to drag each option to their selected dropbox/dropzone. I tried with jquery ui for it. I can drag options to dropbox div by draggable() and droppable() but can't pass its (div) value to controller for checking answers.. I googled a lot but didn't get suitable answer. Can anyone tell me how can I pass from dropbox (div) data to controller for checking. any js plugin/laravel package or anything? Any kind of help will be appreciated. Thanks in advance.
All your javascript (jquery) code is being executed on the client's browser, or front end. The laravel controller is on the server or back end. In order to have any front end events send data to the back end, they will need to make some sort of ajax request to the route that leads to the controller.
There are lots of resources about making ajax requests in whichever javascript framework you are using, whether it be jquery, vue or something else.