Meteor JS: It’s very easy to define field masks for an application Meteor JS

You need use :

$('.your css field').mask('your mask');

Example :

mine.html

{...}

<input type="text" class="phone form-control" 
placeholder="Your Phone" value="{{mine.phone}}">

{...}

mine.js

Template.Mine.rendered = function(){
    $('.phone').mask('00 00000-0000');
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s