Javascript Code
<!-- Script by hscripts.com -->
<script language=javascript>
Array.prototype.inArray = function (value)
{
// Returns true if the passed value is found in the
// array. Returns false if it is not.
var i;
for (i=0; i < this.length; i++)
{
if (this[i] == value)
{
return true;
}
}
return false;
};
function cal(xx)
{
var arr= new Array(1,2,3,4,5,6,7,8,9,10);
if(arr.inArray(xx))
{
alert("Your value is found in the Array");
}
else
{
alert("Your value is not found in the Array");
}
}
</script>
<!-- Script by hscripts.com -->
Release Date - 07-01-2008
Get free version without ©copyright link for just
5
|