<script type="text/javascript">
function validatePID(inputField , helpText)
{
if(inputField.value.length != 9)
{
if(helpText != null)
{
helpText.innerHTML = "Please enter a 9 digit Number";
return false;
}
else if( isNaN(inputField.value))
{
if(helpText != null)
helpText.innerHTML ="Please enter a number ";
return false;
}
else
{
if(helpText != null)
helpText.innerHTML =" ";
return true;
}
}
</script>
this is what i am writing in HTML
<input name='PID_help' class='cellData' maxlength="30" style="WIDTH: 302px; HEIGHT: 17px" size=45 title="Enter PPC ID"
tabIndex=4 onblur = "validatePID(this,document.getElementById('PID_help'));">
<span id="PID_help" class="help"></span>
the error i get is object required...