jQuery get element ids list using

By Sam Deering

This is a quick example use of the jQuery .map() function. Say for instance you wanted to get a comma-separated list of all checkbox IDs in a form, you can do this! Check out the quick demo at

$(':checkbox').map(function() {

Official Doco

  • Geovane Gomes

    I loved it so much! Thank you!


Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Get the latest in JavaScript, once a week, for free.