Skip to content
Advertisement

How to I save checkbox value with ajax in laravel?

I’m trying to save the value of the check box in laravel. I can save all the text fields and all the code works. When I try to save the value of the checkbox the code breaks. Here is what I’ve tried. All the help is appreciated.

Here is my controller I’ve

JavaScript

Here is my HTML

JavaScript

Here is my script

JavaScript

Advertisement

Answer

try this

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement