Hi All,
the below code is not working in ie8,
<script type="text/javascript">
<!--
function validate_form ( )
{
valid = true;
var pattern=/([A-Za-z]{2,20}$)+/
else if (!pattern.test(document.newform.name.value) )
{
alert ( "Please enter the missing value" );
document.newform.name.focus();
valid = false;
}
valid=true;
}
..>
</script>
<form action="valid.php" method="post" name=newform onsubmit="return validate_form ( );">
<table>
<tr><td>Name</td><td><input type=text name="name" ></td></tr>
</table>
I am able to get the validation in chrome and firefox. But i need it in ie8 also, can anyone help me in this



Reply With Quote

Bookmarks