Skip to content

Instantly share code, notes, and snippets.

@ecoleman
Forked from anonymous/gist:6168097
Last active December 20, 2015 17:19
Show Gist options
  • Save ecoleman/6168121 to your computer and use it in GitHub Desktop.
Save ecoleman/6168121 to your computer and use it in GitHub Desktop.
window.accountSigner = function() {
$('.addSigner .addSignerBtn').each(function() {
var next_btn = $('#nextBtn');
$(this).click(function() {
var parent = $(this).parents('.addItem');
parent.addClass('close').hide();
parent.next('article').show();
// show the overall next button
next_btn.show();
});
});
};
// start monitoring the singer buttons when the page is loaded
$(function() { accountSigner(); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment