2
How can I recover a value that comes from a request via JQUERY to a database and put that 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 value returned was 1000 the code should form the following url:
You just want to attach the value in the URL, this?
var url = 'http://www.exemplo.com?n=' + key; window.open(url);
– AlfredBaudisch
That’s right, it worked perfectly here!
– Luis