function ceq(a, b) { return a.toLowerCase() == b.toLowerCase(); }Example use:
if (ceq('aPPle', 'Apple')) { alert('They are the same'); } else { alert('They are the different'); }
function ceq(a, b) { return a.toLowerCase() == b.toLowerCase(); }Example use:
if (ceq('aPPle', 'Apple')) { alert('They are the same'); } else { alert('They are the different'); }