数组元素判断类型
在1个form里有个数组。我想判断录入的数组元素的类型是否满足数字型?
请帮我写一下checkInput()里的内容。谢谢!
a.php
---------------------
<script language="javascript">
function checkInput()
{
}
</script>
<form name="form1" action="a.php" method="post" onsubmit="return checkInput();">
<?
for ($i=0;$i<10;$i++)
{
?>
<input type=text name=sl[] size=15 >
<?
}
?>
<input type=submit name="ok" value="ok">
</form>