guys I’m new to jquery as well as javascript. I want to make an application in laravel where I have to add product and their detail dynamically. So I tried Jquery first time. I got Jquery code but now I can’t get how these values pass through the controller So please help me out with this. Thank You This is
Tag: controller
Javascript document.controller.setValue getValue(this)
How do I get the value of the checkbox (or state, checked or not 1-0) so that I can pass it to a controller?, I’ve tried the following but it doesnt work. Uncaught ReferenceError: getValue is not defined at HTMLInputElement.onclick Answer change getValue(this) to this.checked. it will get checkbox current state.
How to pass an array from view to controller? Using Laravel
I’m with an issue for some days that I can’t solve. I should have a javascript/ajax/jQuery function in my View that creates an array and send the user to a new page using the Route “/modulos/contas_ti/gerar_protocolo” Here is my javascript: My Route: My Controller: Answer You can send it as a request parameter Controller :