can javascript validate correct entry in a field as well as it can accept empty field

Discussion in 'JavaScript' started by maaz4, Feb 9, 2011.

  1. #1
    hiiii,
    im new to javascripts . Can anyone help me to know that a javascript which is validating a phone number accepts only digits but if the text field is left empty it should accept the entry as an empty entry....


    plz share knowledge u will be more knowledgeable :)
     
    maaz4, Feb 9, 2011 IP