0

I have validated my form in such a way that it ain't submitting the data unless the contact field has something else without 11 numeric values. But now I need such phone number validation in Codeigniter that the input field doesn't even let me to type a single character if that is not a number. Can anyone help me with that?

Programming Geek
  • 129
  • 1
  • 10
  • 1
    Possible duplicate of [Phone number validation in php codeigniter](https://stackoverflow.com/questions/10838804/phone-number-validation-in-php-codeigniter) – Raymond Nijland Jun 16 '17 at 15:14
  • 1
    You can do it with form_validation or if you have a regular expression you can add it by extending the class form_validation – elddenmedio Jun 16 '17 at 15:14

1 Answers1

1

What you're looking for is jquery plugin which restricts user input to digits only.

This is plugin - http://www.texotela.co.uk/code/jquery/numeric/

Ganesh
  • 3,128
  • 2
  • 17
  • 27