Skip to content

Instantly share code, notes, and snippets.

@kikegarcia
Last active December 28, 2015 05:09
Show Gist options
  • Save kikegarcia/7447540 to your computer and use it in GitHub Desktop.
Save kikegarcia/7447540 to your computer and use it in GitHub Desktop.
jquery name (foo[]) array selector
$("input[name^=hotels]:checked").each(function() {
alert($(this).val());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment