How can I retrieve a value that comes from a request through JQUERY to a database and put this value into a window.open () function;
JQUERY
$(document).on("click", ".modal", function () {
var key = $(this).data('numero');
var url = 'http://www.exemplo.com&n=';
window.open(url, key);
});
If the return value was 1000 the code should form the following url: