I am just trying to see if one variable has a specific value and an other variable another specific value. And if so, do something.
So its simply an if statement. But it doesn't work. And i dont know why.
So i have the variable : rights and seeprices 'rights' alerts the following: "Individuell" And 'seeprices' outputs "preiseaendern".
var seeprices = $( "#seeprice").html();
var rights = $( "#rights" ).val(); //Value of Combobox
alert(seeprices + " " + rights); // seeprices outputs 'preiseaendern' and rights outputs 'Individuell'
if (rights == "Individuell" && seeprices =="preiseaendern"){
alert("it works...");
}
When i just use
if (rights == "Individuell"){
alert("it works...");
}
It works and i get the message 'it works...', but as soon as i add
&& seeprices == "preisaendern")
It doenst work anymore, and i cant figure out why. Thank you guys in advance.