了,我有這樣的jQuery的jQuery的 - 爲什麼微調沒有顯示在Safari
$(document).ready(function(){
$('#credit_btn, #checkout_btn').click(function(){
$("#content_container .notice, #content_container .error").remove();
$('#loading').show();
});
});
的HTML
<div id="loading" style="display: none;">
<img alt="spinner" border="0" src="/assets/spinner.gif">
</div>
<input class="bigbutton" data-disable-with="One Moment, Processing..." id="checkout_btn" name="commit" type="submit" value="Next Step: Checkout">
爲什麼紡紗顯示不出來它顯示了當我這樣做
$j('#credit_btn, #checkout_btn').click(function(){
$j("#content_container .notice, #content_container .error").remove();
$j('#loading').show();
return false;
});
這裏發生了什麼,有什麼我能做的嗎?在此先感謝
UPDATE
我測試這個jQuery以及
$('#credit_btn, #checkout_btn').click(function(e){
e.preventDefault();
$("#content_container .notice, #content_container .error").remove();
$('#loading').show();
$(this).closest("form").submit();
});
微調犯規再次出現,但它顯示了當我刪除行$(this).closest("form").submit();
...我很困惑...爲什麼表單提交有什麼要做的爲什麼裝載機
您是否收到任何錯誤?你的加載'div'出現了,還是圖像不可見? – Blender
我在Safari瀏覽器中沒有看到任何錯誤...我將更新我的問題 – Trace