function checkmysize(){
var values = [];
var inputs = $('.size-col');
for(var i = 0; i < inputs.length; i++){
values.push($(inputs[i]).val());
alert(values);
}
}
my intention is count the same value in my array , i know i had to check the length and the value of each and push into a array , but how i count the same value in my array?
lets said if i got 3 s and 1 m , i want it to alert to like this s=3 , m=1, L=0. can any one give me a help ?