I want to load a php variable and want to use it for javascript
$(document).ready(function() {
$('#reload').load('http://www.domain.de/content/entwicklung/reload.php?uid=' + uid_clear + '');
});
From this code I get a var but I can only load this into a div
if (uid_clear == ..) {
// want to replace the dots with the data from .load
document.write(' Allgemeine Reloadsperre für das Mitglied von 30 Minuten');
}
How can I load the data into a div and use it as a javascript var ? Is there any way to transfer/change it or is it possible to load the data already as a javascript var ?
kind regards