Skip to content

Instantly share code, notes, and snippets.

@rionmonster
Created April 26, 2016 13:42
Show Gist options
  • Save rionmonster/745bd50a900c541f0e83d0df0c223cd5 to your computer and use it in GitHub Desktop.
Save rionmonster/745bd50a900c541f0e83d0df0c223cd5 to your computer and use it in GitHub Desktop.
$("#customFields").on('click','.remCF',function(){
// Push back the reference since one was removed
var previousIndex = possibleLetters.indexOf(currentLetter) - 1;
currentLetter = possibleLetters[previousIndex];
$(this).parent().parent().remove();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment