How to add a space to a regular expression? What I have:
<input type="text" class="form-control input-lg" id="passport_title" name="passport_title" value="" placeholder="" required=""> A mask is connected to this field:
<script> $(function() { //задание заполнителя с помощью параметра placeholder $("#passport_title").mask("999-999 *************************************************************************"); }); </script> Regular script code:
$.mask = { definitions: { "9": "[0-9]", a: "[A-Za-z]", я: "[А-Яа-я]", "*": "[^a-zA-Z0-9_ ]" }, autoclear: !0, dataName: "rawMaskFn", placeholder: "_"