I have an application with several checkboxes, and this code with Jquery :
var checkboxes = $(".borrar_contacto");
console.log(checkboxes);
And this with JavaScript :
var checkboxes2 = document.getElementsByClassName("borrar_contacto");
console.log(checkboxes2);
In console.log they do not show me the same results. With Jquery he shows me the following:
[input.borrar_contacto, input.borrar_contacto,
input.borrar_contacto, input.borrar_contacto, prevObject: jQuery.fn.init[1]]
And with JavaScript the following:
[input.borrar_contacto, input.borrar_contacto,
input.borrar_contacto, input.borrar_contacto,
10: undefined, 11: undefined, 12: undefined, 13: undefined]
With JavaScript, it shows me the values of the input name in the list, but with Jquery no. How can I get him to show me exactly the same with Jquery?