I’ve got this code:
function nameToCode(nameGroup) {
$.post("execute.php", { something: sendSomething }, function(data) {
return data;
});
}
variable = nameToCode("some text");
But only thing I get to variable is undefined, any ideas? Thanks.
The result won’t be available immediately, so you’ll have to structure your code a bit differently: