|
|
@@ -74,7 +74,7 @@ $(document).ready(function(){
|
|
|
execute a function when the mask is completed
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
- $("#date").inputmask("d/m/y",{ "onComplete": function(){ alert('inputmask complete'); } });
|
|
|
+ $("#date").inputmask("d/m/y",{ "oncomplete": function(){ alert('inputmask complete'); } });
|
|
|
});
|
|
|
|
|
|
mask repeat function
|
|
|
@@ -107,6 +107,14 @@ $(document).ready(function(){
|
|
|
$("#number").val(12345);
|
|
|
});
|
|
|
|
|
|
+with the autounmaskoption you can change the return of $.fn.val to unmaskedvalue or the maskedvalue
|
|
|
+
|
|
|
+$(document).ready(function(){
|
|
|
+ $('#<%= tbDate.ClientID%>').inputmask({ "mask": "d/m/y", 'autounmask' : true}); // value: 23/03/1973
|
|
|
+
|
|
|
+ alert($('#<%= tbDate.ClientID%>').val()); // shows 23031973 (autounmask: true)
|
|
|
+});
|
|
|
+
|
|
|
add custom definitions
|
|
|
|
|
|
$.extend($.inputmask.defaults.definitions, {
|