You should avoid parentheses (adding quotes will also avoid the problem, but escaping special characters is still good practice):
imgs = $('input[type="checkbox"][name="images\\[\\]"]:checked').map(function() { return this.value; }).get();
source share