Skilled Illusionist
- Joined
- Oct 28, 2008
- Messages
- 379
- Reaction score
- 47
hello,
i've got a little problem
The succes function of the $.get (jquery)request wont take over the variable counter1. I don't know why, i've tried alot but can't seem to find the problem...
i've got a little problem
Code:
var divs;
var id;
var counter1;
function loadTags(){
divs = document.body.getElementsByTagName('div');
counter1 = 0;
for(counter1 = 0;counter1 <= divs.length; counter1++){
id = divs[counter1].id;
$.get("./common.php", {getTags: id}, function (data){
divs[counter1].innerHTML += data;
});
}
}