can someone please give me a simple example of creating a javascript list then checkin it for a value? I am fairly good with perl and heres is a perl example of what i need in javascript.
@list = ("one", "two", "three", "four");
foreach(@list){
if ($_ eq "one"){
$exist = "$_ exists in list";
}
}
thank you!
@list = ("one", "two", "three", "four");
foreach(@list){
if ($_ eq "one"){
$exist = "$_ exists in list";
}
}
thank you!