SyntaxFix
Write A Post
Hire A Developer
Questions
to read an array, you can also utilize "each" method of jQuery:
array
each
jQuery
$.each($("input[name^='card']"), function(index, val){ console.log(index + " : " + val); });
bonus: you can also read objects through this method.
source