// jvalid.js v1.0.7
// Dennis Hernández http://djhvscf.github.io/Blog
;(function(e){"use strict";e.fn.jValid=function(t){function h(e){var n,r;if(e.ctrlKey||e.altKey){return}if(e.type===i.keypress.toString()){r=c.getKeyCode(e);if(typeof r==="boolean"){return r}n=new RegExp(t.regex)}else if(e.type===i.paste.toString()){l.data("value_before_paste",e.target.value);setTimeout(function(){h({type:"after_paste",input:l})},1);return true}else if(e.type===i.after_paste.toString()){r=c.inputVal();n=new RegExp("^("+t.regex+")+$")}else{return false}if(n.test(r)){return true}else if(typeof t.onError==="function"){t.onError.call(this,r)}if(e.type===i.after_paste.toString()){c.inputVal(l.data("value_before_paste"))}return false}function p(e){var n=c.inputVal(),r=c.getKeyCode(e);if(e.ctrlKey||e.altKey){return}if(e.type===i.keypress.toString()){if(typeof r==="boolean"){return r}if(n.length<o){switch(t.regex.charAt(c.getPosition())){case"0":if(c.isNumeric(r)){c.callGetNextCharacter(n+t.regex.charAt(c.getPosition()));return true}else{return false};case"S":if(u.test(r)){c.callGetNextCharacter(n+t.regex.charAt(c.getPosition()));return true}else{return false};case"s":if(a.test(r)){c.callGetNextCharacter(n+t.regex.charAt(c.getPosition()));return true}else{return false};default:return false}}else{return false}}else{return false}}var n={regex:"S-S",behaviorRegExp:false,live:true,ignoredKeys:[8,9,13,35,36,37,39,46],onError:"",onComplete:"",onChanged:""},r="keypress paste",i={keypress:"keypress",paste:"paste",after_paste:"after_paste"};var s=["0","S","s"],t=e.extend(n,t),o=t.regex.length,u=new RegExp("[A-Z]"),a=new RegExp("[a-z]"),f=new RegExp("[^a-zA-Z0-9]","g"),l=e(this);var c={getPosition:function(){var e=document.selection,t=l.get(0).selectionStart;if(e&&!~navigator.appVersion.indexOf("MSIE 10")){return e.createRange().moveStart("character",l.is("input")?-l.val().length:-l.text().length).text.length}else if(t||t===0){return t}},getKeyCode:function(e){var n=e.charCode?e.charCode:e.keyCode?e.keyCode:0;if(c.inArray(n,t.ignoredKeys)){if(e.charCode===0&&e.keyCode===n){return true}}return String.fromCharCode(n)},isValidMask:function(e){var t=e.replace(f,"");for(var n=0;n<t.length;n++){if(!c.inArray(t.charAt(n),s)){return false}}return true},inputVal:function(e){var t=l.is("input"),n=t?"val":"text",r;if(arguments.length>0){l[n](e);r=l}else{r=l[n]()}return r},isNumeric:function(t){return e.isNumeric(t)},getNextSpecialCharacter:function(e){var n=t.regex.charAt(c.getPosition());if(c.isSpecialCharacter(n)){c.inputVal(c.inputVal()+n);return true}},isSpecialCharacter:function(e){return f.test(e)},callGetNextCharacter:function(e){setTimeout(function(){c.getNextSpecialCharacter(e)},1)},cleanValue:function(e){return c.inputVal().replace(f,e?" ":"")},inArray:function(t,n){return e.inArray(t,n)===-1?false:true},getNextCharacter:function(e){var t=c.inputVal();if(e<=t.length){return t.charAt(e+1)}},reviewCharByChar:function(e){try{var n=t.regex,r=c.inputVal(),i=c.getPosition();for(var s=0;s<n.length;s++){switch(n.charAt(s)){case"0":if(!c.isNumeric(r.charAt(i))){var o=r.charAt(i+1);c.inputVal(c.inputVal().replaceAt(r.indexOf(o)," ").replace(" ",""));c.inputVal(c.inputVal().insert(i,o))}break;case"S":if(!u.test(r.charAt(s))){}break;case"s":if(!a.test(r.charAt(s))){}break;default:return false}}}catch(f){console.log(f)}},verifyjQueryVersion:function(n){if(t.regex===""){e.error("You have to give the Regular expression or the mask to apply!")}else{var i=e.fn.jquery.split("."),s=e(n),o;if(t.behaviorRegExp){o=h}else{if(c.isValidMask(t.regex)){o=p}else{e.error("You have to create a valid mask")}}if(t.live){if(parseInt(i[0])>=1&&parseInt(i[1])>=7){s.on(r,o)}else{s.live(r,o)}}else{return n.each(function(){if(parseInt(i[0])>=1&&parseInt(i[1])>=7){s.off(r).on(t.events,o)}else{s.unbind(r).bind(t.events,o)}})}}},isRegExp:function(e){}};String.prototype.replaceAt=function(e,t){return this.substr(0,e)+t+this.substr(e+t.length)};String.prototype.insert=function(e,t){if(e>0){return this.substring(0,e)+t+this.substring(e,this.length)}else{return t+this}};c.verifyjQueryVersion(l);e.fn.cleanValue=function(e){return c.cleanValue(e)}}})(jQuery)
@@ -11,17 +11,17 @@
 js v1.0.
-7
+8
 %0A// Denn

Update version