I have the following selector:
var abc = $("input[id^= 'country']");
It returns details from five input checkboxes with names starting with country. What I want to do is to take the value of these checkboxes and put them into an array that’s something like:
var array1 = ['true', 'false', 'true', 'true', 'true'];
Is there an easy way to do this. I’ve tried all different combinations but without luck
You are looking for the
mapfunction.