Avoid hypen on validation

Home Forums Jquery Validation for Contact Form 7 Avoid hypen on validation

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6370
    kumaresan
    Guest

    In above website i am using contact form 7 and for validation using Jquery Validation for Contact Form 7 plugin.

    I added custom javascript to display telephone number xxx-xxx-xxxx.

    I am using validation method= ‘class:number’ for telephone number field validation.

    Now,when i enter the number in the field, error will be displayed ‘please enter number only’. Because validation take hypen(-) also one of the character.(Hypen will be auto generate by code)

    Is, there any possible to avoid that.That means character not accept in that field and avoid hypen on validation(that means accept hypen)

    #6371
    kumaresan
    Guest
    #6377
    Dinesh
    Keymaster

    Hi,

    Any chance you can try using USPhone for validation ?

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Avoid hypen on validation’ is closed to new replies.