I am not getting the mask to show up when I am typing a number like it shows on their demo.
I am using gem 'maskedinput-rails'
.
My code is:
<div class="form-group">
<label class="control-label col-sm-5" for="phone">Phone Number:</label>
<div class="col-sm-7">
<%= f.telephone_field :phone, class: 'form-control', value: number_to_phone(@appointment.phone, area_code: true) %>
</div>
<script>
jQuery(function($){
$("#phone").mask("(999) 999-9999");
});
</script>
</div>