victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
972 stars 476 forks source link

Country list #653

Open pocapratica opened 6 years ago

pocapratica commented 6 years ago

Hello.

Where does the script gets the country list suggestion? Can I change this values to another kind of list?

Thanks

victorjonsson commented 6 years ago

http://www.formvalidator.net/#default-validators_suggest

pocapratica commented 6 years ago

Thanks for the fast answer @victorjonsson , but I mean a big list, like an SQL base with cities and states. How can I modify the field to search and sql base exactly like it does, with autocomplete, but making an SQL search instead of the suggestions?

By the way, if the suggestion array has words with 1 char length, it does not works.

Thanks in advance. Great work you do here.

victorjonsson commented 6 years ago

that's not supported I'm afraid

pocapratica commented 6 years ago

Thanks.

But where are declared the array of countries that are used in the example? I would try to change that source to my sql or my json array of cities.