<div id="timer_inp">10</div>
<div id="timer_inp1">5</div>
<div id="timer_inp2">10</div>
<script type="text/javascript">
function timer(elem_id){
if(elem_id) { obj=document.getElementById(elem_id); }
obj.innerHTML--;
if(obj.innerHTML==0){setTimeout(function(){
obj.style.display = 'none';
if(i < arr.length - 1) {
i++;
timer(arr[i].id);
}
},1000);}
else{setTimeout(timer,1000);}
}
var arr = document.querySelectorAll('div'),
i = 0;
timer(arr[i].id);
</script>