Skip to content

Instantly share code, notes, and snippets.

@stajnert
Last active December 13, 2015 23:48
Show Gist options
  • Save stajnert/4993887 to your computer and use it in GitHub Desktop.
Save stajnert/4993887 to your computer and use it in GitHub Desktop.
Fetch integer from attr
var int = $(this).attr('id').match(/\d+/);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment