js输入框自动提示车牌号码验证效果

来源:https://www.sucaihuo.com/js/1537.html 2017-03-25 20:45浏览(5155) 收藏

这是一款js车牌验证代码,输入你的车牌就可以验证的输入框.
js输入框自动提示车牌号码验证效果
分类:表单代码 > 输入框 难易:初级
查看演示 下载资源 下载积分: 20 积分
function onChange(crap, skipPrevCheck) {
		if( lastKeyPressCode == KEY.DEL ) {
			select.hide();
			return;
		}
		
		var currentValue = $input.val();
		
		if ( !skipPrevCheck && currentValue == previousValue )
			return;
		
		previousValue = currentValue;
		
		currentValue = lastWord(currentValue);
		if ( currentValue.length >= options.minChars) {
			$input.addClass(options.loadingClass);
			if (!options.matchCase)
				currentValue = currentValue.toLowerCase();
			request(currentValue, receiveData, hideResultsNow);
		} else {
			stopLoading();
			select.hide();
		}
	};
标签: 验证输入框
评论0
头像

系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791

1 2