Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ladda button spin animation not showing on input elements

Tags:

jquery

plugins

Using Ladda plugin for buttons with built-in loading indicators. I've been able to get it working on button and href elements, but not on a input. More specifically, the spin animation. It doesn't show. Everything works, but it just doesn't show the spin.

CODE:

<input class="ladda-button" type="submit" data-color="green" data-style="expand-left">

Any help would be much appreciated. Thank you guys!

like image 725
alyus Avatar asked Feb 04 '14 20:02

alyus


1 Answers

You can replace your <input type="submit> with <button type="submit"></button>.

<button type="submit" class="ladda-button" data-style="expand-left">Hello</button>

Modern web browsers will treat this functionally the same as an <input type="submit">.

like image 125
Antony Harfield Avatar answered Sep 21 '22 23:09

Antony Harfield