Posted By

dato on 01/17/12



Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Obtener array con los valores de checkbox

 / Published in: jQuery

Uso de map y function(i,n) Devueve un array valor1, valor2, ...

  1. var checkbox_opciones = $('#opciones input:checked').map(function(i,n)
  2. {
  3. return $(n).val();
  4. }).get(); //get converts it to an array

Report this snippet  

You need to login to post a comment.