1
$(document).ready(function () {
var codigo = "abC";
});
<a class="btn btn-default" href="/meuApp/pagina?codigo=" + codigo + >Cancelar</a>
Good afternoon.
I’m breaking my head and I can’t pass a variable to a url .
It’s okay to use this:
$(document).ready(function () {
var codigo = "abC";
});
And on the page I have the url :
<a class="btn btn-default" href="/meuApp/pagiba?codigo=" + codigo >Ver</a>
It doesn’t even open my qd page. What am I missing?
Your link is correct?
– Marconi
Yeah... I just can’t get that variable.
– Marcia Pereira Reis
have tried using a "Document.write(code)"?
– Lucas Torres
@Lucastorres I put in the url ?
– Marcia Pereira Reis
First of an Inspection on the page and see if the code is being printed, if not, put a script tag after the same and try to do this. Test-only
– Lucas Torres