Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
var day = new Array(); $(':checkbox:checked').each(function(i){ day.push($(this).val()); }); alert(day);
which return this:
but I would like to get this:
`3`,`10`,`16`
thanks
day.push('`' + $(this).val() + '`');
Add a comment
It is in an array. Alerts just show arrays differently. try looking at it in console.log() you will see
console.log()
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.