You can compare two strings using “==” operator
eg :
var str1=”Test1″;
var str2=”Test2″;
if(str1=str2)
alert(“Message”);
You can compare two strings using “==” operator
eg :
var str1=”Test1″;
var str2=”Test2″;
if(str1=str2)
alert(“Message”);
You can declare an array using the constructor “Array”
var arlene1 = new Array();
var arlene2 = new Array(“First element”, “Second”, “Last”)
You can change the class name using the below given code.
document.getElementById(“idElement”).setAttribute(“class”,”className”);