Good afternoon in the following my query is about the following, I have a table that has a checkbox in which I already map () and get the data I want to obtain, also formed as a kind of arrangement. What I have considered is the possibility of sending what I select in the combos, and sending them to the textarea since for now I can not find another way to send the data and a file together the client data with the file I want take, to the table in mysql, this with laravel that is what I'm doing it, well my question is correct as it arises or there is another possibility to take it to the controller and from there to the database
I pass the view,
--> @foreach($clients as $client) {{$client}} {{$client}}--> @endforeach
@csrf Subir Boletín
This is the function in which I worked
var arreglo = new Array(); $('#cheid').click(function(){ /// la variable valor toma del input check el valor que se le asigna, y lo mapea con el metodo map, /// luego retorna el mismo, esto tiene la capacidad de tomas todos los valores que se encuentran en la //tabla. var values = $('input:checkbox:checked.valor').map(function(){ return this.value; }).get(); var valorNombre = values; arreglo.push(valorNombre); function mostrar(){ for (i=0; i'; } } });
If they need something more