SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
$('#select_all').click(function() { $('#countries option').prop('selected', true); });
And here's a live demo.