Sha256: 939c526adc5625ae31738a4b5ed4eeb80dcf468ef2f5337b83882a200b42556c
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
//= require intlTelInput/intlTelInput //= require intlTelInput/utils (function ($) { $(document).on('ready page:load', function () { $('[data-intl-tel-input]').each(function () { var element = $(this); var hidden = $('<input type="hidden"/>') .attr('name', element.attr('name')) .val(element.val()) .insertAfter(element); element.intlTelInput(element.data('intl-tel-input') || {}); element.removeAttr('name') .closest('form').submit(function () { hidden.val(element.intlTelInput('getNumber')); }); }); }); })(jQuery);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-intl-tel-input-0.1.2 | app/assets/javascripts/intlTelInput.js |