Sha256: 535f464482beb0995a70590f0ece0ca430b277205e88586f283d120ee3ea8db1
Contents?: true
Size: 414 Bytes
Versions: 6
Compression:
Stored size: 414 Bytes
Contents
//= require jquery.maskMoney.min $(function() { $('.maskmoney').each(function() { // Apply the mask and trigger it $(this).maskMoney().trigger('mask'); // Sync unmasked value with hidden field $(this).on('change keyup paste', function() { var unmaskedMoneyCents = $(this).maskMoney('unmasked')[0] * 100; $(this).siblings('[type="hidden"]').val(unmaskedMoneyCents); }) }); });
Version data entries
6 entries across 6 versions & 1 rubygems