String comparison in java script
string comparison in java script for example confirm password...like..
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #259 · 9.8K reputationPosted Jul 9, 2014, 12:39 AM EDT
var string1="ABC";
var string2="abc";
if(string1.toLowerCase()==string2.toLowerCase())
confirm('same');
twitter @sumitjolly
Akhil MittalRank #133 · 16.9K reputationPosted Jul 9, 2014, 12:52 AM EDT
http://www.w3schools.com/jsref/jsref_localecompare.asp