Giter VIP home page Giter VIP logo

Comments (9)

jackocnr avatar jackocnr commented on May 12, 2024

By default, the autoHideDialCode option is true, which means if there is just a dial code in the input then when it loses focus (e.g. when it is submitted), it will automatically be emptied. The assumption is that no-one would ever want to submit just a dial code as their telephone number. If you want to allow this though, just set autoHideDialCode to false when you initialise the plugin.

from intl-tel-input.

gchokeen avatar gchokeen commented on May 12, 2024

Thanks for reply, but I already set the autoHideDialCode as false. Still the value was not setting up in value attribute in text field. But it showing in text field on UI.

from intl-tel-input.

jackocnr avatar jackocnr commented on May 12, 2024

Can you confirm that it works if you don't initialise the plugin, and you just type +91 in the input and submit the form?

from intl-tel-input.

gchokeen avatar gchokeen commented on May 12, 2024

Just tested, Yeah it posting the value without initialise the plugin, If we have option to post either +91 or IN (country code). If we have both option, it will be very useful.

Thanks

from intl-tel-input.

jackocnr avatar jackocnr commented on May 12, 2024

I can't reproduce this. Are you submitting the data in an ajax request? Can you please post all the relevant code?

from intl-tel-input.

gchokeen avatar gchokeen commented on May 12, 2024

I am not using ajax. I create the separate page to test with plugin code. It works. So I think something wrong in my code. nothing wrong with plugin. Thanks for your time to look at that.

Please consider to add this feature.

If we have option to post either +91 or IN (country code). If we have both option, it will be very useful.

Thanks

from intl-tel-input.

jackocnr avatar jackocnr commented on May 12, 2024

Can you please open a new issue for that feature request, and add more detail about how you would want it to work, and why it would be useful. Just so you know I'm only interested in adding new features if they will be useful to a lot of people.

from intl-tel-input.

magsense avatar magsense commented on May 12, 2024

this would be useful to me

from intl-tel-input.

jackocnr avatar jackocnr commented on May 12, 2024

Hi magsense, as I said before, please open a new issue for this, and add as much detail as possible.

from intl-tel-input.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.