I have button that has a on.click(function() {}. Inside the click function is a setTimeout( function() {} that will show the content from external html file.
<button type="button" class="btn btn-primary choose-iphone-btn">Jet Black</button>
$(function() {
$('.choose-iphone-btn').click(function() {
setTimeout( function() {
$.get('iphone-checkout.html')
.success(function(data) {
$('.iphone-pre-order-sales-content-info').html(data);
});
}, 3000);
});
});
I want to display
<img src="images/default.gif" />
for 3 seconds before showing iphone-checkout.html.
Any help is appreciated.