Skip to content

Mobile Recommendations

Omar Shammas edited this page Sep 13, 2013 · 2 revisions

We recommend you set the pattern attribute which will cause the numeric keyboard to be displayed on mobiles:

<input class="number" pattern="\d*">

This will be added to the library in due time, and has been added as an [issue] (https://github.com/omarshammas/jquery.formance/issues/5). For example, $('input.number').formance('format_number'); would automatically set the pattern attribute and other best practices.