ruby on rails - How to divide number_field into 3 parts? -
in model, have integer field phone. in view field displayed this:
<%= f.number_field :phone %>
i trying display 1 input phone number 3 inputs, want offer user in view this:
___ - ___ - ____
is there way how that?
the jquery masked input plugin offers functionality within 1 input field:
it allows user more enter fixed width input them enter data in format (dates,phone numbers, etc).
the demo page includes phone format example: (___) ___-____
Comments
Post a Comment