JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="wr_11" name="wr_11">
JavaScript
$(function(){
$("#wr_11").keyup(function(){
$(this).val();
var pattern = /^[#|0]/;
if($(this).val() && !pattern.test($(this).val())){
alert("첫문자는 # 또는 0 으로 시작하셔야 합니다.");
$(this).val('');
}
})
})