Hi there, i have the following code:
function tryToDownload(url) {
oIFrm = document.getElementById('download');
oIFrm.src = url;
//alert(url);
}
function downloadIt(file) {
var text = $("#downloaded").text();
setTimeout(function(){ $("#downloadBar").slideDown("fast") }, 700);
setTimeout('tryToDownload("index.php?fileName='+file+'")', 400);
setTimeout(function(){ $("#downloadBar").slideUp("fast") }, 5000);
}
And there is a DIV with id "downloaded". So the code is
<div id="downloded">230</div>
230 shows that the item is downloaded 230 times. What I want to do is that when some body clicks the download it updates 230 to 231. How can it be possible with jquery kindly help.