I'm using jQuery. How do I get the current and complete URL path, I want to assign it to the current url variable.
$("#id_ativo").change(function(){
$.ajax({
type: "POST",
url: url_atual,
...
I'm using jQuery. How do I get the current and complete URL path, I want to assign it to the current url variable.
$("#id_ativo").change(function(){
$.ajax({
type: "POST",
url: url_atual,
...
Try using the code below
var url_atual = window.location.href;