Skip to content

Instantly share code, notes, and snippets.

@tomasgregor
Created January 22, 2014 16:22
Show Gist options
  • Select an option

  • Save tomasgregor/8561779 to your computer and use it in GitHub Desktop.

Select an option

Save tomasgregor/8561779 to your computer and use it in GitHub Desktop.
Parse element's id
var id = ($this.attr("id").match(/\d+$/));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment