[ Meteor JS] – How to use a money mask

Have a lot of ways to do this, but here I will put an example with the pkg :

meteor add rainhaven:mask-money

https://github.com/plentz/jquery-maskmoney

Code in HTML file :

<template name="expenses">
<input type="text" class="price">
</template>

Code in JS file:

Template.expenses.rendered = function(){
    $('.price').maskMoney();
};

 

 

 

 

Leave a comment