Hello, I would like you to help me, I am wanting to do a following validation in javascript. I explain, I'm realizing that I have data from a table where there is a field called State. and when the state is in process when you are pressed to see, I want that if the state says processed, a message or an alert is in process. If you could help me please
THIS IS THE TABLE THAT HAVE DATA.
because now when they give in to see is directed to another page but how could it do that when in state in PROCESS DO NOT REDIRECT AND EXIT THIS MESSAGE.
Script
<script>
function getQueryVariable(variable) {
console.log(variable);
var proceso = variable;
if(proceso=="3")
{
alert("prueba");
return true;
}
}
</script>
I put a console.log but in the variable that extracts the number 5 and I do not understand why it should grab the number 3 because in url idestadoincidencia says 3.