Forums

Add Input Mask to a Currency Field

spytech 28 Mar, 2018
Hi, I am trying to add an input mask to a currency field of '£' but am having some issues.

I created a JavaScript module and added in the code. (My Field ID is: 'invoice_total':

window.addEvent('domready', function() {
$('invoice_total').meiomask('Reverse', 'DecimalUs', {symbol: '£'});
});

This does not seem to work. I checked the box, 'Add inside a DOM ready event'

Thanks
Paul.
GreyHead 21 Apr, 2018
Hi Paul,

To access the element id you need to prefix the id with # $('#invoice_total')

Bob
This topic is locked and no more replies can be posted.