mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
Add script to support <input type="text" inputmode="numeric">
This commit is contained in:
parent
d7fb2422fe
commit
0ea9778682
2 changed files with 8 additions and 0 deletions
7
modules/extravar/skins/default/assets/number.js
Normal file
7
modules/extravar/skins/default/assets/number.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
$(function() {
|
||||
$('input.rx_ev_number').on('input', function() {
|
||||
this.value = this.value.replace(/[^0-9]/g, '');
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue