I created one small function, what I want, after refreshing the page, is the button to show with some delay time..
I mean, for example, if I click the modify
div, the page is going to refresh and show the button with 5000ms delay ( Refresh after 5000ms delay then the button wants to show).
Here is my fiddle..
I hope my question is understandable..
Here is my example snippet here..
// after page refresh show button with 5000ms delay
$(document).ready(function() {
$("#modify_sec").click(function() {
location.reload();
}, 5000);
$("#sec_get").show();
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right cash-icons">
<li class="breadcrumb-item mdfy_icon" id="modify_sec"><a href="#">Modify</a></li>
</ol>
</div>
<!-- button -->
<div class="col-2">
<div class="data_btn" id="sec_get">
<button type="button" id="getBtn">Get data</button>
</div>
</div>