DEV Community

Shotazhvania
Shotazhvania

Posted on

Ajax request to post input number with country code in database

  $.post('https://crm.yorktowers.com/modules/Webforms/capture.php', function(){ 
    $(function() {
      $('.iti__selected-dial-code').on('change', function() {
          $('#phone').val($(this).val());
      });
  });

Hi. Need solution how to post in this database input numbers with country code. I used intl-tel-input plugin and when i input number it`s going in database, but without country code.

Top comments (0)