html #Sending Form Button Loading.html

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html #Sending Form Button Loading.html相关的知识,希望对你有一定的参考价值。

$.ajax({
                    url: 'include/gonder.php',
                    type: "POST",
                    data: {isim: isim, eposta: eposta, konu: konu, telefon: telefon, mesaj: mesaj},
                    success: function (response) {

                        if (response == 200) {
                            buton.button('sended');

                            setTimeout(function () {
                                buton.button('reset');
                            }, 4000);
                        } else {
                            buton.button('error');

                            setTimeout(function () {
                                buton.button('reset');
                            }, 4000);
                        }
                    }
                });
<button type="button" class="coloured-btn submit" id="submit"
                                                data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Gönderiliyor"
                                                data-sended-text="<i class='fa fa-check'></i> Gönderildi"
                                                data-error-text="<i class='fa fa-error'></i> Gönderim Başarısız">
                                            <i class="fa fa-send"></i> ŞİMDİ GÖNDER
                                        </button>
<button type="button" data-loading-text="Loading..."

data-sended-text="gitti..." class="btn btn-primary">
  Loading state
</button>

以上是关于html #Sending Form Button Loading.html的主要内容,如果未能解决你的问题,请参考以下文章

Not sending via email

form和button和input

jsp中用button提交表单数据

form表单的两种提交方式,submit和button的用法

html form中 多个button的onclick()怎么处理?怎么知道点击的是哪个按钮?是要写多个onclick()函数吗?

转DisposeClose=null三者之间的区别