js 判断input首字母务必为m 成功的话继续填写其他选项

js 判断input首字母必须为m 成功的话继续填写其他选项js 判断input首字母必须为m 成功的话继续填写其他选

js 判断input首字母必须为m 成功的话继续填写其他选项
js 判断input首字母必须为m 成功的话继续填写其他选项   求高手指点
[解决办法]
<input type="text" name="" onblur="if(this.value.substr(0,1)!='m'){alert('首字母必须为m');this.select()}">