(function(a){a.fn.digits=function(b){b=a.extend({selectable:!0,insert:!0,dragndrop:!0,inputErrorClass:"",errorClass:"",errorText:""},b);a.fn.digits.selectable=b.selectable;a.fn.digits.insert=b.insert;a.fn.digits.dragndrop=b.dragndrop;a.fn.digits.inputErrorClass=b.inputErrorClass;a.fn.digits.errorClass=b.errorClass;a.fn.digits.errorText=b.errorText;this.keypress(function(a){if(!(a.ctrlKey||a.altKey||a.metaKey)){var c=function(a){return null==a.which?32>a.keyCode?null:String.fromCharCode(a.keyCode):
0!=a.which&&0!=a.charCode?32>a.which?null:String.fromCharCode(a.which):null};if(null!=c(a)&&("0">c(a)||"9"<c(a)))return!1}});a.fn.digits.selectable||this.css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"});a.fn.digits.dragndrop||(this.on("dragover",function(a){a.preventDefault();a.stopPropagation();return!1}),this.on("dragleave",function(a){a.preventDefault();a.stopPropagation();return!1}),
this.on("drop",function(a){a.preventDefault();a.stopPropagation();return!1}));this.bind("paste",function(b){if(!a.fn.digits.insert)return b.preventDefault(),!1;if(!/([0-9])/g.test(this.value))return b.preventDefault(),a(this).addClass(a.fn.digits.inputErrorClass),0==a(this).parent().has("span."+a.fn.digits.errorClass).length&&(console.log(a(this).parent().has("span."+a.fn.digits.errorClass)),a(this).parent().append('<span class="'+a.fn.digits.errorClass+'">'+a.fn.digits.errorText+"</span>")),!1});
this.on("focusout blur",function(b){a(this).removeClass(a.fn.digits.inputErrorClass);a(this).parent().find("span."+a.fn.digits.errorClass).remove()});return this}})(jQuery);
@@ -94,24 +94,44 @@
 rorClass:%22%22,
+errorElement:%22span%22,
 errorClass:%22
@@ -297,32 +297,72 @@
 ass;a.fn.digits.
+errorElement=b.errorElement;a.fn.digits.
 errorClass=b.err
@@ -498,16 +498,17 @@
 n null==
+%0A
 a.which?
@@ -556,17 +556,16 @@
 eyCode):
-%0A
 0!=a.whi
@@ -1002,16 +1002,17 @@
 gleave%22,
+%0A
 function
@@ -1065,17 +1065,16 @@
 urn!1%7D),
-%0A
 this.on(
@@ -1349,32 +1349,24 @@
 arent().has(
-%22span.%22+
 a.fn.digits.
@@ -1370,21 +1370,23 @@
 ts.error
-Class
+Element
 ).length
@@ -1392,114 +1392,71 @@
 h&&(
-console.log(a(this).parent().has(%22span.%22+a.fn.digits.errorClass)),a(this).parent().append('%3Cspan class=%22'+
+b=a(document.createElement(a.fn.digits.errorElement)).addClass(
 a.fn
@@ -1477,14 +1477,15 @@
 lass
-+'%22%3E'+
+).text(
 a.fn
@@ -1505,27 +1505,44 @@
 Text
-+%22%3C/span%3E%22
+),a(this).parent().append(b
 )),
+%0A
 !1%7D);
-%0A
 this
@@ -1648,16 +1648,8 @@
 ind(
-%22span.%22+
 a.fn
@@ -1661,21 +1661,23 @@
 ts.error
-Class
+Element
 ).remove
@@ -1704,8 +1704,9 @@
 jQuery);
+%0A

add new option - errorElement