我有一個按鈕被點擊下面的代碼後出現的AJAX裝載機:卸下阿賈克斯裝載機圖像之後的某個
jQuery(document).ready(function($){
{
$.getElementById('form').onsubmit = function() {
$.getElementById('submit').style.display = 'block';
$.getElementById('loading2').style.display = 'block';
};
}(document));
});
HTML:
<input type="submit" class="button alt" onclick="$(\'#loading\').show();" name="woocommerce_checkout_place_order"/>'
我想阿賈克斯裝載機在10秒後消失。
請讓我知道
您可以使用JavaScript的setTimeout – 2014-10-28 11:19:19