Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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