tsquareweb
MIS
I am a rookie at javascript so this may be a simple question.
If this doesn’t work, what am I missing? How do I get the code (RRH) from the page to equal the number value (78)? Is this not possible?
if(!found)
{
var salesman = document.getElementById('salesman1');
var code = salesman.innerHTML; // Salesman ex. RRH
var RRH = 78;
var DRH = 78;
var BJS = 78;
var SLA = 91;
var MDT = 84;
var CBC = 81;
var CWS = 85;
var TAB = 90;
var MWM = 88;
// RRH == 78 // example
if(code == currentUserId) // These aren’t matching. Any Idea what I am missing?
{
found = true;
alert('Match = ' + found);
}
}
If this doesn’t work, what am I missing? How do I get the code (RRH) from the page to equal the number value (78)? Is this not possible?
if(!found)
{
var salesman = document.getElementById('salesman1');
var code = salesman.innerHTML; // Salesman ex. RRH
var RRH = 78;
var DRH = 78;
var BJS = 78;
var SLA = 91;
var MDT = 84;
var CBC = 81;
var CWS = 85;
var TAB = 90;
var MWM = 88;
// RRH == 78 // example
if(code == currentUserId) // These aren’t matching. Any Idea what I am missing?
{
found = true;
alert('Match = ' + found);
}
}