Created
December 19, 2017 17:52
-
-
Save sean-codes/937d985cecd1bef84607affb9d2d54d4 to your computer and use it in GitHub Desktop.
Auto Ladda Button with only 'ladda-button' class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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