Skip to content

Instantly share code, notes, and snippets.

@sean-codes
Created December 19, 2017 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sean-codes/937d985cecd1bef84607affb9d2d54d4 to your computer and use it in GitHub Desktop.
Save sean-codes/937d985cecd1bef84607affb9d2d54d4 to your computer and use it in GitHub Desktop.
Auto Ladda Button with only 'ladda-button' class
j$(function(){
j$('.ladda-button').each(function(){
if(!j$(this).children('.ladda-label')){
j$(this).html('<span class="ladda-label">'+j$(this).html()+'</span>');
}
if(!j$(this).attr('data-style')){
j$(this).attr('data-style', 'slide-up');
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment