本文实例讲述了JS验证IP,子网掩码,网关和MAC的方法。分享给大家供大家参考。具体如下:
</tr> <tr> <td width="186" height="46" ><div align="center">网 关:</div></td> <td width="506" height="46"> <input type="text" name="gateway" size="15" maxlength="15" /><font color="#FF0000">*</font>不能为空,必须填写</td> </tr> <tr> <td width="186" height="48"><div align="center">MAC地址:</div></td> <td width="506" height="48" > <input type="text" name="mac" size="15" maxlength="15" /><font color="#FF0000">*</font>不能为空,必须填写</td> </tr> <tr><!---changeinfo(ip.value,zwym.value,mac.value,reboot)--> <!-- onClick="changeinfo(ip.value,gateway.value,mac.value)"----> <td height="47" colspan="2" align="center"><input type="submit" value="提交" /><input type="reset" value="重置" /> </td> </tr> </table>