Documentation / Tutorials / Tutorials & How to’s
How to use Ladda on form submit with Awesome Studio
/ Tutorials & How to’s / How to use Ladda on form submit with Awesome Studio
By default awesome studio shows us the default loader on a form submits, but if you want you can use Ladda Js library to show the loaded instead of default loader on a form submit.
Just check the sample below on how to do it.
So, we basically needed to add these two attributes to the script tag
loader='ladda' to specify the loader library we want to use, if we remove this library, spa will default to original loader.
loader_selector='.js-register' to specify the target button which need to show the loader, in case of above example that is register button whose class is 'js-register'.