I have the following values which need to be hard coded and compared in javascript
the values are :
SR = PlantWRShippingMail@shawinc.com
26 = Plant26ShippingMail@shawinc.com
29 = Plant29ShippingMail@shawinc.com
30 = Plant30ShippingMail@shawinc.com
34 = Plant34ShippingMail@shawinc.com
54 = Plant54ShippingMail@shawinc.com
41 = Plant41ShippingMail@shawinc.com
47 = Plant47ShippingMail@shawinc.com
DL = Plant.DL.Shipping.Mail@shawinc.com
37 = Plant37ShippingMail@shawinc.com
MU = PlantMUShippingMail@shawinc.com
UC = PlantUCShippingMail@shawinc.com
NB = plantnbshippingmail@shawinc.com
and so on
I have to compare the value with the existing value like
var plantNo=document.getElementById('plantNo').value;
if(plantNo=`anyonevaluefromAbove`){
//than get the value of it.
}
How to do I do this in javascript.
You can simply use JS Object
then simply looking
is this what you wanted?