<asp:TextBox ID="CommentBox" runat="server" TextMode="multiLine" CssClass="commentTbx" onKeyDown="limitText(this,200);" onKeyUp="limitText(this,200);valid(this);"></asp:TextBox>
function valid(f) {
!(/^[A-zÑñ0-9-\s]*$/i).test(f.value)?f.value = f.value.replace(/[^A-zÑñ0-9-\s]/ig,''):null;
}
こんにちは、私のjavascriptの機能ですが、私はカンマ、スペースとfullstopを許可したい!どのように可能ですか?テキストボックスで特殊文字を無効にするにはどうすればよいですか?