Posted By:
Akbur_Ghafoor
Posted On:
Tuesday, July 24, 2001 05:02 AM
Hi folks,
Anyone know how I can make a comparison between two fields that consist of a String but ignore the case?
i.e,
var myVar = "HeLLo";
var myVar2 = "hello";
(myVar == myVar2) should equal true.
A method which does this job exists in Java language (equalsIgnoreCase) but I am not aware of one in JavaScript. Any one know?
Thanks,
Akbur