IME – ワイズリマインダー自分用備忘録2019-07-25T02:34:56Zhttps://reminder.ysrock.com/feed/atom/WordPressysrockhttp://reminder.ysrock.comhttps://reminder.ysrock.com/?p=27332019-07-25T02:34:56Z2019-07-25T02:34:56Z$('#ELEMENT_ID').on("input", function(e){
let value = $(e.currentTarget).val();
// 【制御】メールアドレス
value = value.replace(/[^\w\-.@!#\$%&'\*\+\/=\?\-^_`\{\|\}~]/g, "");
$(e.currentTarget).val(value);
});
$('#ELEMENT_ID').on("input", function(e){
let value = $(e.currentTarget).val();
// 【制御】半角数字とハイフォンのみ
value = value.replace(/[^0-9\-]/g, "");
$(e.currentTarget).val(value);
});