javascript - Need to hide the clicked div and reappear after 10 seconds -
need hide clicked div.
i tried example in jsfiddle. new js want better solution.
<div class="t1">1</div> <div class="t2">2</div> <div class="t3">3</div> <div class="t4">4</div> <div class="t5">5</div>
pls find working snippet added below
$('body').on('click','.t11',function(){ $(this).hide(); var = $(this); settimeout(function() { that.show(); }, 1000); });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="t1 t11">1</div> <div class="t2 t11">2</div> <div class="t3 t11">3</div> <div class="t4 t11">4</div> <div class="t5 t11">5</div>
Comments
Post a Comment