I have a each loop that should send a private message:
[...].each(function () { $.get('board.php?func=list&id=' + (this.text) + '&send=Please read the board rules'); });
When I do 'alert(this.text);' within the each loop, everything works fine. But when I concatenate it with the string of the get Request, it doesn't work. Do I miss something?
this, show us the scope this is used in? If it's an element, it should probably be$(this).text()[...].each(function () { var url = 'board.php?func=list&id=' + (this.text) + '&send=Please read the board rules'; console.log(url); $.get(url); });thiswill be a native DOM element, which has notextproperty, you should be using$(this).text()to get the text, did you try that.